]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: staging: media: zoran: fix usage of vb2_dma_contig_set_max_seg_size
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 14 Dec 2021 16:16:29 +0000 (17:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:41 +0000 (13:57 +0200)
commitd72dfffe7fcbd345083c43e1e70c464626c24db2
tree4e71f4347b969107ba05e1186458ce1c536a00ca
parent597756073769ebc912fcb5aa0dbfad220484d033
media: staging: media: zoran: fix usage of vb2_dma_contig_set_max_seg_size

[ Upstream commit 241f5b67fb48def58643f279dfb8468bdd54b443 ]

vb2_dma_contig_set_max_seg_size need to have a size in parameter and not
a DMA_BIT_MASK().
While fixing this issue, also fix error handling of all DMA size
setting.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: d4ae3689226e5 ("media: zoran: device support only 32bit DMA address")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/media/zoran/zoran_card.c