]> git.baikalelectronics.ru Git - kernel.git/commit
net/packet: fix missing net_device reference release
authorDouglas Caetano dos Santos <douglascs@taghos.com.br>
Fri, 12 May 2017 18:19:15 +0000 (15:19 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 May 2017 18:22:12 +0000 (14:22 -0400)
commitda62dec836b46501dd39fcc69c3600b419c19b09
treef452ca1b8115d8493ada5403dbd5bad359471fe0
parente4a01cf55808fd02c82852361e9c70d19f4c3809
net/packet: fix missing net_device reference release

When using a TX ring buffer, if an error occurs processing a control
message (e.g. invalid message), the net_device reference is not
released.

Fixes 1b4614be42867 ("sock: enable timestamping using control messages")
Signed-off-by: Douglas Caetano dos Santos <douglascs@taghos.com.br>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c