Netdev Archive on
help / color / mirror / Atom feed
From: nil Yi <>
Subject: [BUG]drivers: net: usb: usbnet.c: dangling pointer in function usbnet_start_xmit
Date: Sun, 1 Aug 2021 16:02:18 +0800	[thread overview]
Message-ID: <> (raw)

I found there leaves a dangling pointer urb in function
usbnet_start_xmit in v5.14-rc3,
1386:  entry->urb = urb;
1451:  usb_put_urb(urb);
1454:  goto deferred;

1492:   deferred:
1494:         return NETDEV_TX_OK;

left a pointer in entry->urb,  I'm not sure whether it cound be used
in usbnet_bh

Any feedback would be appreciated, thanks :)

Best wishes,
Nil Yi

                 reply	other threads:[~2021-08-01  8:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \
    --subject='Re: [BUG]drivers: net: usb: usbnet.c: dangling pointer in function usbnet_start_xmit' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).