drivers: net: usb: rtl8150: concurrent URB bugfix
authorPetko Manolov <petkan@nucleusys.com>
Sun, 19 May 2013 23:08:47 +0000 (23:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 May 2013 20:42:05 +0000 (13:42 -0700)
commit4d12997a9bb3d217ad4b925ec3074ec89364bf95
tree73be8b2581db6f1de2fccf527e2bca4c4c123c9c
parent25dff94ff9df40d4d663bb6ea3193a7758cc50e5
drivers: net: usb: rtl8150: concurrent URB bugfix

This patch fixes a potential race with concurrently running asynchronous
write requests.  The values for device's RX control register are now
stored in dynamically allocated buffers so each URB submission has it's
own copy.  Doing it the old way is data clobbering prone.

This patch is against latest 'net' tree.

Signed-off-by: Petko Manolov <petkan@nucleusys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/rtl8150.c