drivers: net: mhi: fix error path in mhi_net_newlink
Fix double free_netdev when mhi_prepare_for_transfer fails. Fixes: 3ffec6a1 ("net: Add mhi-net driver") Signed-off-by: NDaniele Palmas <dnlplm@gmail.com> Reviewed-by: NManivannan Sadhasivam <mani@kernel.org> Reviewed-by: NLoic Poulain <loic.poulain@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录