]> git.ipfire.org Git - thirdparty/linux.git/commit
media: cx18: Add missing check after DMA map
authorThomas Fourier <fourier.thomas@gmail.com>
Wed, 9 Jul 2025 11:35:40 +0000 (13:35 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 29 Aug 2025 09:04:01 +0000 (11:04 +0200)
commit23b53639a793477326fd57ed103823a8ab63084f
treeb0d6225a7df1142f1b38ff9fcf1a44141e03f987
parent2dc344f89f7312df5f684492a813d024d34cdf20
media: cx18: Add missing check after DMA map

The DMA map functions can fail and should be tested for errors.
If the mapping fails, dealloc buffers, and return.

Fixes: 1c1e45d17b66 ("V4L/DVB (7786): cx18: new driver for the Conexant CX23418 MPEG encoder chip")
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/cx18/cx18-queue.c