Re: [PATCH] yam: fix possible memory leak in yam_init_driver
From: David Miller
Date: Thu Jun 04 2020 - 18:59:03 EST
From: Wang Hai <wanghai38@xxxxxxxxxx>
Date: Thu, 4 Jun 2020 20:18:51 +0800
> If register_netdev(dev) fails, free_netdev(dev) needs
> to be called, otherwise a memory leak will occur.
>
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Wang Hai <wanghai38@xxxxxxxxxx>
Applied, thanks.