Files
linux/drivers/net
Gaosheng Cui 1115e77c4f net: stmmac: fix errno when create_singlethread_workqueue() fails
commit 2cb815cfc7 upstream.

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: a137f3f27f ("net: stmmac: fix possible memory leak in stmmac_dvr_probe()")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20221214080117.3514615-1-cuigaosheng1@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-12-31 13:14:47 +01:00
..
2021-08-03 13:05:26 +01:00
2021-12-29 12:28:44 +01:00
2021-07-27 20:11:43 +01:00
2022-08-25 11:40:15 +02:00
2021-06-28 12:44:17 -07:00
2021-08-04 10:10:12 +01:00
2021-07-27 20:11:44 +01:00
2021-08-03 13:05:26 +01:00