Commit 23b53639 authored by Thomas Fourier's avatar Thomas Fourier Committed by Hans Verkuil
Browse files

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: 1c1e45d1 ("V4L/DVB (7786): cx18: new driver for the Conexant CX23418 MPEG encoder chip")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarThomas Fourier <fourier.thomas@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil+cisco@kernel.org>
parent 2dc344f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment