USB CDC NCM: tx_fixup() race condition fix
authorAlexey Orishko <alexey.orishko@gmail.com>
Mon, 17 Jan 2011 07:07:25 +0000 (07:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jan 2011 00:13:50 +0000 (16:13 -0800)
commitf742aa8acb7e50a383f6d2b00b1c52e081970d38
tree365776e1df59f97ebad512ab61f57a704495bc72
parent1956cc52e73984a39252994f0beee458fc0d8909
USB CDC NCM: tx_fixup() race condition fix

- tx_fixup() can be called from either timer callback or from xmit()
  in usbnet, so spinlock is added to avoid concurrency-related problem.
- minor correction due to checkpatch warning for some line over 80
  chars after previous patch was applied.

Signed-off-by: Alexey Orishko <alexey.orishko@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c