[PATCH] fix kfree(skb) in iphase driver

From: Patrick McHardy (kaber@trash.net)
Date: Thu May 08 2003 - 16:58:09 EST


This patch fixes a kfree(skb) in the iphase driver.

Best regards,
Patrick


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1198 -> 1.1199
# drivers/atm/iphase.c 1.14 -> 1.15
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/05/08 kaber@trash.net 1.1199
# fix kfree(skb)
# --------------------------------------------
#
diff -Nru a/drivers/atm/iphase.c b/drivers/atm/iphase.c
--- a/drivers/atm/iphase.c Thu May 8 23:56:27 2003
+++ b/drivers/atm/iphase.c Thu May 8 23:56:27 2003
@@ -2965,7 +2965,7 @@
                          dev_kfree_skb_any(skb);
                    return 0;
            }
- kfree(skb);
+ dev_kfree_skb_any(skb);
            skb = newskb;
         }
         /* Get a descriptor number from our free descriptor queue

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:29 EST