aboutsummaryrefslogtreecommitdiff
path: root/lib/clz_tab.c
diff options
context:
space:
mode:
authorVeaceslav Falico <[email protected]>2013-11-29 09:53:23 +0100
committerDavid S. Miller <[email protected]>2013-11-29 16:11:08 -0500
commitec6f809ff6f19fafba3212f6aff0dda71dfac8e8 (patch)
tree6218fc1ecc6805427b753c4f2573f910c6793e1d /lib/clz_tab.c
parent006da7b07bc4d3a7ffabad17cf639eec6849c9dc (diff)
af_packet: block BH in prb_shutdown_retire_blk_timer()
Currently we're using plain spin_lock() in prb_shutdown_retire_blk_timer(), however the timer might fire right in the middle and thus try to re-aquire the same spinlock, leaving us in a endless loop. To fix that, use the spin_lock_bh() to block it. Fixes: f6fb8f100b80 ("af-packet: TPACKET_V3 flexible buffer implementation.") CC: "David S. Miller" <[email protected]> CC: Daniel Borkmann <[email protected]> CC: Willem de Bruijn <[email protected]> CC: Phil Sutter <[email protected]> CC: Eric Dumazet <[email protected]> Reported-by: Jan Stancek <[email protected]> Tested-by: Jan Stancek <[email protected]> Signed-off-by: Veaceslav Falico <[email protected]> Acked-by: Daniel Borkmann <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions