Thread (2 messages) 2 messages, 2 authors, 2011-12-26

Re: [PATCH] packet: fix dev refcnt leak when bind fail

From: David Miller <davem@davemloft.net>
Date: 2011-12-26 20:15:49

From: Wei Yongjun <redacted>
Date: Mon, 26 Dec 2011 17:02:59 +0800
From: Wei Yongjun <redacted>

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

Signed-off-by: Wei Yongjun <redacted>
The device pointer is stored in ->prot_hook.dev

Therefore, it will be released at the latest in packet_release() or
earlier if another bind() attempt is done on the socket.

There is no leak here as far as I can see.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help