]> git.baikalelectronics.ru Git - kernel.git/commit
packet: fix warnings in rollover lock contention
authorWillem de Bruijn <willemb@google.com>
Thu, 14 May 2015 19:25:02 +0000 (15:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2015 21:40:54 +0000 (17:40 -0400)
commit697fb1ed92db1993443f78942e3028fdd00fb1cc
treea3549400cc77b55a19ea400a3f6623f461739139
parent273a2ec7f0362eed5c694aee8d9a640b04e7f6d0
packet: fix warnings in rollover lock contention

Avoid two xchg calls whose return values were unused, causing a
warning on some architectures.

The relevant variable is a hint and read without mutual exclusion.
This fix makes all writers hold the receive_queue lock.

Suggested-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c