diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2023-04-06 09:31:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-04-20 13:35:08 +0300 |
commit | 53a22fa7f9c20e77af9769e7f555c3fde6379704 (patch) | |
tree | a4183bd3d82214215c8c9949df6a7913a2da2c7e /arch/arm/mach-cns3xxx | |
parent | 24da5765d1ede4c82362f47626f3fcb291a77fb5 (diff) | |
download | linux-53a22fa7f9c20e77af9769e7f555c3fde6379704.tar.xz |
niu: Fix missing unwind goto in niu_alloc_channels()
[ Upstream commit 8ce07be703456acb00e83d99f3b8036252c33b02 ]
Smatch reports: drivers/net/ethernet/sun/niu.c:4525
niu_alloc_channels() warn: missing unwind goto?
If niu_rbr_fill() fails, then we are directly returning 'err' without
freeing the channels.
Fix this by changing direct return to a goto 'out_err'.
Fixes: a3138df9f20e ("[NIU]: Add Sun Neptune ethernet driver.")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/mach-cns3xxx')
0 files changed, 0 insertions, 0 deletions