]> git.baikalelectronics.ru Git - kernel.git/commit
af-packet: Hold reference to bound network devices.
authorBen Greear <greearb@candelatech.com>
Wed, 1 Jun 2011 07:18:52 +0000 (07:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jun 2011 21:16:28 +0000 (14:16 -0700)
commitb2d11ff4e530b4a32baa30b445e5c541c83da8f1
tree68faa9997e62de66cfc0f06ed744737443345c7f
parent4d5fb6ab323c9017cae07a95c3fe39de3b52ed7f
af-packet: Hold reference to bound network devices.

Old code was probably safe, but with this change we
can actually use the netdev object, not just compare
the pointer values.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c