]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: mhi: fix error path in mhi_net_newlink
authorDaniele Palmas <dnlplm@gmail.com>
Fri, 24 Sep 2021 09:26:52 +0000 (11:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Sep 2021 13:25:05 +0000 (14:25 +0100)
commit4526fe74c3c5095cc55931a3a6fb4932f9e06002
tree1058149c366e5b0f0aff7856658daae416eb5319
parent5ab8a447bcfee1ded709e7ff5dc7608ca9f66ae2
drivers: net: mhi: fix error path in mhi_net_newlink

Fix double free_netdev when mhi_prepare_for_transfer fails.

Fixes: 3ffec6a14f24 ("net: Add mhi-net driver")
Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mhi_net.c