aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2014-06-03 23:40:47 +0000
committerDavid S. Miller <[email protected]>2014-06-04 02:16:10 +0000
commite51fb152318ee6502a2d224771b0bbbbda046128 (patch)
tree313cc6f5be89fabea00162cf970285791c07899b /drivers/net/xen-netback/interface.c
parentbnx2x: Fix kernel crash and data miscompare after EEH recovery (diff)
downloadkernel-e51fb152318ee6502a2d224771b0bbbbda046128.tar.gz
kernel-e51fb152318ee6502a2d224771b0bbbbda046128.zip
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]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions