[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200604.155859.185403656964744319.davem@davemloft.net>
Date: Thu, 04 Jun 2020 15:58:59 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: wanghai38@...wei.com
Cc: jpr@...bb.org, kuba@...nel.org, linux-hams@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] yam: fix possible memory leak in yam_init_driver
From: Wang Hai <wanghai38@...wei.com>
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@...wei.com>
> Signed-off-by: Wang Hai <wanghai38@...wei.com>
Applied, thanks.
Powered by blists - more mailing lists