]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
et131x: Add missing check after DMA map
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 16 Jul 2025 09:47:30 +0000 (11:47 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Jul 2025 02:02:55 +0000 (19:02 -0700)
commitd61f6cb6f6ef3c70d2ccc0d9c85c508cb8017da9
treebb96f462315dee2de00e27bee2dd7d707647d781
parent96a1e15e60216b52da0e6da5336b6d7f5b0188b0
et131x: Add missing check after DMA map

The DMA map functions can fail and should be tested for errors.
If the mapping fails, unmap and return an error.

Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Acked-by: Mark Einon <mark.einon@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250716094733.28734-2-fourier.thomas@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/agere/et131x.c