summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorRasesh Mody2011-09-16 17:06:48 +0200
committerDavid S. Miller2011-09-17 06:47:57 +0200
commitb9fa1fbf98178c8bbda23ff1d3ed0731bb3c0bd1 (patch)
tree7562913799f3ec165d2e0befb43e7e5463dac7c2 /include/net
parentbna: Set Ring Param Fix (diff)
downloadkernel-qcow2-linux-b9fa1fbf98178c8bbda23ff1d3ed0731bb3c0bd1.tar.gz
kernel-qcow2-linux-b9fa1fbf98178c8bbda23ff1d3ed0731bb3c0bd1.tar.xz
kernel-qcow2-linux-b9fa1fbf98178c8bbda23ff1d3ed0731bb3c0bd1.zip
bna: Eliminate Small Race Condition Window in RX Path
Change details: - In a continuous sequence of ifconfig up/down operations, there is a small window of race between bnad_set_rx_mode() and bnad_cleanup_rx() while the former tries to access rx_info->rx & the latter sets it to NULL. This race could lead to bna_rx_mode_set() being called with a NULL (rx_info->rx) pointer and a crash. - Hold bnad->bna_lock while setting / unsetting rx_info->rx in bnad_setup_rx() & bnad_cleanup_rx(), thereby eliminating the race described above. Signed-off-by: Gurunatha Karaje <gkaraje@brocade.com> Signed-off-by: Rasesh Mody <rmody@brocade.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions