Skip to content
Commit 1969f943 authored by Jai Luthra's avatar Jai Luthra Committed by Xulin Sun
Browse files

media: ti: j721e-csi2rx: Fix races while restarting DMA

commit 10993b78334c6d4efb329f5b4d4e284982ebaa74 from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git



commit ad79c9ec upstream

After the frame is submitted to DMA, it may happen that the submitted
list is not updated soon enough, and the DMA callback is triggered
before that.

This can lead to kernel crashes, so move everything in a single
lock/unlock section to prevent such races.

Fixes: b4a3d877 ("media: ti: Add CSI2RX support for J721E")
Signed-off-by: default avatarJai Luthra <j-luthra@ti.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
parent adc282db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment