Skip to content
Commit 42c17fa6 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

net: fix a leak in register_netdevice()



We have to free "dev->name_node" on this error path.

Fixes: ff927412 ("net: introduce name_node struct to be used in hashlist")
Reported-by: default avatar <syzbot+6e13e65ffbaa33757bcb@syzkaller.appspotmail.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 56e7a2f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment