mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 00:24:58 +08:00
5255e4d9df
copy_to_user() must not be called with spinlocks held, but it is in fmc_transfer_rds_from_internal_buff(). The patch copies data to tmpbuf, releases spinlock and then passes it to userspace. By the way there is a small unification: replace a couple of hardcoded constants by a macro. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> |
||
---|---|---|
.. | ||
fmdrv_common.c | ||
fmdrv_common.h | ||
fmdrv_rx.c | ||
fmdrv_rx.h | ||
fmdrv_tx.c | ||
fmdrv_tx.h | ||
fmdrv_v4l2.c | ||
fmdrv_v4l2.h | ||
fmdrv.h | ||
Kconfig | ||
Makefile |