]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5dd7b904a18f508b0effe0ba22b1ebbba7c812a9
tree73be8b2581db6f1de2fccf527e2bca4c4c123c9c
parent0d946b92658fb3b540ae7b03e2f947297502deda
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