]> Git Repo - linux.git/commit
rtnetlink: fix a memory leak when ->newlink fails
authorCong Wang <[email protected]>
Tue, 3 Jun 2014 23:40:47 +0000 (16:40 -0700)
committerDavid S. Miller <[email protected]>
Wed, 4 Jun 2014 02:16:10 +0000 (19:16 -0700)
commite51fb152318ee6502a2d224771b0bbbbda046128
tree313cc6f5be89fabea00162cf970285791c07899b
parent9aaae044abe95de182d09004cc3fa181bf22e6e0
rtnetlink: fix a memory leak when ->newlink fails

It is possible that ->newlink() fails before registering
the device, in this case we should just free it, it's
safe to call free_netdev().

Fixes: commit 0e0eee2465df77bcec2 (net: correct error path in rtnl_newlink())
Cc: David S. Miller <[email protected]>
Cc: Eric Dumazet <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/rtnetlink.c
This page took 0.054206 seconds and 4 git commands to generate.