2003-05-08 21:45:37

by Patrick McHardy

[permalink] [raw]
Subject: [PATCH] fix kfree(skb) in iphase driver

# 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 [email protected] 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


Attachments:
iphase-kfree-skb.diff (900.00 B)

2003-05-09 22:59:44

by chas williams

[permalink] [raw]
Subject: Re: [PATCH] fix kfree(skb) in iphase driver

In message <[email protected]>,Patrick McHardy writes:
>This patch fixes a kfree(skb) in the iphase driver.

what release is this against?

>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
>

2003-05-09 23:38:36

by Patrick McHardy

[permalink] [raw]
Subject: Re: [PATCH] fix kfree(skb) in iphase driver



chas williams wrote:

>In message <[email protected]>,Patrick McHardy writes:
>
>
>>This patch fixes a kfree(skb) in the iphase driver.
>>
>>
>
>what release is this against?
>

2.4.21-rc1 couple of changesets before -rc2, still applies.

Patrick