[PATCH] fix kfree(skb) in iphase driver

Patrick McHardy (kaber@trash.net)
Thu, 08 May 2003 23:58:09 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-23975-1052431134-0001-2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

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

Best regards,
Patrick

--=_courier-23975-1052431134-0001-2
Content-Type: text/plain; name="iphase-kfree-skb.diff"; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="iphase-kfree-skb.diff"

# 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

--=_courier-23975-1052431134-0001-2--