diff options
author | tom.leiming@gmail.com <tom.leiming@gmail.com> | 2012-03-22 03:22:38 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-04-02 09:27:17 -0700 |
commit | d6dbbeccac70f85972e8b7773cede113914c9730 (patch) | |
tree | 637bdf29338a695977ca25e25ab794848642ba6b /fs/proc | |
parent | 27c3e5f205c085075547cb376bdae37693bd7090 (diff) | |
download | kernel_samsung_smdk4412-d6dbbeccac70f85972e8b7773cede113914c9730.zip kernel_samsung_smdk4412-d6dbbeccac70f85972e8b7773cede113914c9730.tar.gz kernel_samsung_smdk4412-d6dbbeccac70f85972e8b7773cede113914c9730.tar.bz2 |
usbnet: don't clear urb->dev in tx_complete
commit 5d5440a835710d09f0ef18da5000541ec98b537a upstream.
URB unlinking is always racing with its completion and tx_complete
may be called before or during running usb_unlink_urb, so tx_complete
must not clear urb->dev since it will be used in unlink path,
otherwise invalid memory accesses or usb device leak may be caused
inside usb_unlink_urb.
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/proc')
0 files changed, 0 insertions, 0 deletions