]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: pci: ivtv: Add missing check after DMA map
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 16 Jul 2025 13:26:30 +0000 (15:26 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 29 Aug 2025 09:04:02 +0000 (11:04 +0200)
commit1069a4fe637d0e3e4c163e3f8df9be306cc299b4
tree3ad9af656260219278e85dd0259e2a14095ddceb
parent9d6b556abf7758aae65447915f1c4f82f0a57df4
media: pci: ivtv: Add missing check after DMA map

The DMA map functions can fail and should be tested for errors.
If the mapping fails, free blanking_ptr and set it to 0.  As 0 is a
valid DMA address, use blanking_ptr to test if the DMA address
is set.

Fixes: 1a0adaf37c30 ("V4L/DVB (5345): ivtv driver for Conexant cx23416/cx23415 MPEG encoder/decoder")
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/pci/ivtv/ivtv-irq.c
drivers/media/pci/ivtv/ivtv-yuv.c