Commit:     b8d297c93a888fcd4d74ba0bbeeabe9b84caf514
Parent:     83f7d958eab2fbc6b159ee92bf1493924e1d0f72
Author:     Erik Hovland <[EMAIL PROTECTED]>
AuthorDate: Mon Apr 23 10:50:15 2007 -0700
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Apr 27 13:28:42 2007 -0700

    usb ethernet gadget, workaround network stack API glitch
    Another workaround for the glitch in the network layer, whereby one call
    ignores the (otherwise kernel-wide) convention that free() calls should
    not oops when passed nulls.  This code already handles that API glitch in
    most other paths.
    From: Erik Hovland <[EMAIL PROTECTED]>
    Signed-off-by: David Brownell <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/gadget/ether.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
index 8f9f217..96df841 100644
--- a/drivers/usb/gadget/ether.c
+++ b/drivers/usb/gadget/ether.c
@@ -1735,7 +1735,8 @@ enomem:
                defer_kevent (dev, WORK_RX_MEMORY);
        if (retval) {
                DEBUG (dev, "rx submit --> %d\n", retval);
-               dev_kfree_skb_any (skb);
+               if (skb)
+                       dev_kfree_skb_any(skb);
                list_add (&req->list, &dev->rx_reqs);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to