]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: 3com: 3c59x: fix possible null dereference in vortex_probe1()
authorThomas Fourier <fourier.thomas@gmail.com>
Tue, 6 Jan 2026 09:47:21 +0000 (10:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:11 +0000 (16:35 +0100)
commitd82796a57cc0dac1dbef19d913c8f02a8cc7b1a7
treed2789a90ec6c5deac511586fad8e2ca5c676d388
parent4ae815bfcfadeb173b47a1de62ca00d36c815460
net: 3com: 3c59x: fix possible null dereference in vortex_probe1()

commit a4e305ed60f7c41bbf9aabc16dd75267194e0de3 upstream.

pdev can be null and free_ring: can be called in 1297 with a null
pdev.

Fixes: 55c82617c3e8 ("3c59x: convert to generic DMA API")
Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Link: https://patch.msgid.link/20260106094731.25819-2-fourier.thomas@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/3com/3c59x.c