aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorDavid Ward <[email protected]>2013-04-11 13:47:15 +0000
committerDavid S. Miller <[email protected]>2013-04-12 15:10:48 -0400
commitfb745e9a037895321781d066aa24757ceabf9df9 (patch)
tree1166ef2a488b5e1afbd1ee71df493fb593adf167 /lib/memory-notifier-error-inject.c
parent3be8fbab18fbc06b6ff94a56f9c225e29ea64a73 (diff)
net/802/mrp: fix possible race condition when calling mrp_pdu_queue()
(Adapted from a very similar change to net/802/garp.c by Cong Wang.) mrp_pdu_queue() should ways be called with the applicant spin lock. mrp_uninit_applicant() only holds the rtnl lock which is not enough; a race is possible because mrp_rcv() is called in BH context: mrp_rcv() |->mrp_pdu_parse_msg() |->mrp_pdu_parse_vecattr() |->mrp_pdu_parse_vecattr_event() |-> mrp_attr_event() |-> mrp_pdu_append_vecattr_event() |-> mrp_pdu_queue() Cc: Cong Wang <[email protected]> Cc: Eric Dumazet <[email protected]> Signed-off-by: David Ward <[email protected]> Acked-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions