[PATCH] net: stmmac: fix errno when create_singlethread_workqueue() fails
Leon Romanovsky
leon at kernel.org
Tue Dec 13 23:54:38 PST 2022
On Wed, Dec 14, 2022 at 11:42:05AM +0800, Gaosheng Cui wrote:
> We should set the return value to -ENOMEM explicitly when
> create_singlethread_workqueue() fails in stmmac_dvr_probe(),
> otherwise we'll lose the error value.
>
> Fixes: a137f3f27f92 ("net: stmmac: fix possible memory leak in stmmac_dvr_probe()")
> Signed-off-by: Gaosheng Cui <cuigaosheng1 at huawei.com>
> ---
> drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 +
> 1 file changed, 1 insertion(+)
>
Please change title of your patch to be "PATCH net"
Thanks
More information about the linux-arm-kernel
mailing list