commit | 1bb6e0ccbc4d42280d997b1e4a527e59bc14904f | [log] [tgz] |
---|---|---|
author | Pan Bian <bianpan2016@163.com> | Wed Nov 28 15:30:24 2018 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Dec 17 09:38:34 2018 +0100 |
tree | 0c03ff923b8607c70cc93b0b8ef7eef18ff6d7ad | |
parent | 992963c693c56bef8c08e400f52cfdeda53f79af [diff] |
net: hisilicon: remove unexpected free_netdev [ Upstream commit c758940158bf29fe14e9d0f89d5848f227b48134 ] The net device ndev is freed via free_netdev when failing to register the device. The control flow then jumps to the error handling code block. ndev is used and freed again. Resulting in a use-after-free bug. Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>