diff options
| author | Yoshihiro Shimoda <[email protected]> | 2022-11-07 08:10:21 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2022-11-09 01:49:05 +0000 |
| commit | 380f9acdf74729d79972b947820f00b42cc26dae (patch) | |
| tree | 9d9eeb60afb6b58980ed6b25397bf1e5fcf5e26c /drivers/net/dsa/microchip/ksz_spi.c | |
| parent | lib: Fix some kernel-doc comments (diff) | |
| download | kernel-380f9acdf74729d79972b947820f00b42cc26dae.tar.gz kernel-380f9acdf74729d79972b947820f00b42cc26dae.zip | |
net: ethernet: renesas: rswitch: Fix endless loop in error paths
Coverity reported that the error path in rswitch_gwca_queue_alloc_skb()
has an issue to cause endless loop. So, fix the issue by changing
variables' types from u32 to int. After changed the types,
rswitch_tx_free() should use rswitch_get_num_cur_queues() to
calculate number of current queues.
Reported-by: coverity-bot <[email protected]>
Addresses-Coverity-ID: 1527147 ("Control flow issues")
Fixes: 3590918b5d07 ("net: ethernet: renesas: Add support for "Ethernet Switch"")
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_spi.c')
0 files changed, 0 insertions, 0 deletions
