]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
packet: fix possible dev refcnt leak when bind fail
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Wed, 28 Dec 2011 03:32:41 +0000 (22:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2011 03:32:41 +0000 (22:32 -0500)
commitaef950b4ba3196622a5bd5e21ab1d63f30658285
treef4cb91f4517a041ef95c28ad50039b0b2ae6b137
parentc43c5f39584c0f388a7e5372312c2c48221a4415
packet: fix possible dev refcnt leak when bind fail

If bind is fail when bind is called after set PACKET_FANOUT
sock option, the dev refcnt will leak.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c