diff options
author | 2023-04-05 23:31:18 -0700 | |
---|---|---|
committer | 2023-04-07 08:17:54 +0100 | |
commit | 8ce07be703456acb00e83d99f3b8036252c33b02 (patch) | |
tree | 48e980e01004b757428635cd325cdd826e3daab2 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Merge tag 'net-6.3-rc6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
download | wireguard-linux-8ce07be703456acb00e83d99f3b8036252c33b02.tar.xz wireguard-linux-8ce07be703456acb00e83d99f3b8036252c33b02.zip |
niu: Fix missing unwind goto in niu_alloc_channels()
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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions