]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:12 +0000 (16:23 +0200)
commite393a23e965b8f3c94c51d864dc17c9dc5164538
tree8025e583c7fc3cdfcf88081856d56a5f35295d53
parenta309014f1b1eb1dc2e9ed6c697a564021c58f8e0
media: pci: ivtv: Add missing check after DMA map

commit 1069a4fe637d0e3e4c163e3f8df9be306cc299b4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/pci/ivtv/ivtv-irq.c
drivers/media/pci/ivtv/ivtv-yuv.c