]> git.baikalelectronics.ru Git - kernel.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)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 23 Jan 2022 20:18:39 +0000 (21:18 +0100)
commitbc89ae485899e1a046ddd699e47e5fc3d4f6bae0
tree827d59cb81f5310f53eba22766b3fa5e359f9b76
parentf69bbc6a09c640b8b20b3c18a0df56aad383be49
media: staging: media: zoran: fix usage of vb2_dma_contig_set_max_seg_size

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: 1d19bbe2a9ed2 ("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>
drivers/staging/media/zoran/zoran_card.c