diff options
| author | Alexey Kodanev <aleksei.kodanev@bell-sw.com> | 2025-11-21 12:38:34 +0000 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-25 19:08:53 -0800 |
| commit | f5bce28f6b9125502abec4a67d68eabcd24b3b17 (patch) | |
| tree | ad64313294a1b138172e2176c7f52be4e0e17753 /tools/lib/python/kdoc/kdoc_re.py | |
| parent | 0ae9cfc454ea5ead5f3ddbdfe2e70270d8e2c8ef (diff) | |
net: sxgbe: fix potential NULL dereference in sxgbe_rx()
Currently, when skb is null, the driver prints an error and then
dereferences skb on the next line.
To fix this, let's add a 'break' after the error message to switch
to sxgbe_rx_refill(), which is similar to the approach taken by the
other drivers in this particular case, e.g. calxeda with xgmac_rx().
Found during a code review.
Fixes: 1edb9ca69e8a ("net: sxgbe: add basic framework for Samsung 10Gb ethernet driver")
Signed-off-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20251121123834.97748-1-aleksei.kodanev@bell-sw.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions
