summaryrefslogtreecommitdiff
path: root/drivers/net/ixp2000
diff options
context:
space:
mode:
authorAdam Baker <linux@baker-net.org.uk>2007-10-27 11:43:29 (GMT)
committerDavid S. Miller <davem@davemloft.net>2008-01-28 23:03:03 (GMT)
commit3d82346c5d0ff0a413c387c6edaadc0ca29a0971 (patch)
tree790b3fcc6ccee693d9ac343626d1296c736a7851 /drivers/net/ixp2000
parent4bd7c452a468af30bb3c4d9c3adcdaf3f3c6048c (diff)
downloadlinux-fsl-qoriq-3d82346c5d0ff0a413c387c6edaadc0ca29a0971.tar.xz
rt2x00: Place mutex around USB register access
There is a buffer, csr_cache which is used to hold copies of data being passed to the USB stack which can get corrupted if multiple threads attempt to access CSR registers simultaneously. There is also the possibility if multiple threads try to access BBP or RF registers for the multiple USB operations needed to get interleaved leading to incorrect results. This patch introduces a mutex to prevent such simultaneous access. The interleaved access problem may also affect the PCI devices but if so that will be handled in a follow-up patch. Signed-off-by: Adam Baker <linux@baker-net.org.uk> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixp2000')
0 files changed, 0 insertions, 0 deletions