]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerJakub Kicinski <kuba@kernel.org>
Thu, 8 Jan 2026 16:36:56 +0000 (08:36 -0800)
commita4e305ed60f7c41bbf9aabc16dd75267194e0de3
treec2d21e1de7d79ceacf57c055f856f2dc25a0ddcd
parentc1d73b1480235731e35c81df70b08f4714a7d095
net: 3com: 3c59x: fix possible null dereference in vortex_probe1()

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>
drivers/net/ethernet/3com/3c59x.c