linux/drivers/media/radio/wl128x
Alexey Khoroshilov 5255e4d9df [media] wl128x: do not call copy_to_user() while holding spinlocks
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>
2013-05-21 08:23:31 -03:00
..
fmdrv.h [media] fmdrv: better define fmdbg() macro to avoid warnings 2012-10-28 07:38:52 -02:00
fmdrv_common.c [media] wl128x: do not call copy_to_user() while holding spinlocks 2013-05-21 08:23:31 -03:00
fmdrv_common.h [media] wl128x: fmdrv_common: fix signedness bugs 2011-12-30 17:00:56 -02:00
fmdrv_rx.c [media] fmdrv: Don't check if unsigned are below zero 2012-10-28 07:39:04 -02:00
fmdrv_rx.h [media] wl128x: fmdrv_rx: fix signedness bugs 2011-12-30 17:01:38 -02:00
fmdrv_tx.c [media] wl128x: fmdrv_tx: fix signedness bugs 2011-12-30 17:01:52 -02:00
fmdrv_tx.h [media] wl128x: fmdrv_tx: fix signedness bugs 2011-12-30 17:01:52 -02:00
fmdrv_v4l2.c [media] v4l2: add const to argument of write-only s_tuner ioctl 2013-03-24 06:31:23 -03:00
fmdrv_v4l2.h
Kconfig tty: Added a CONFIG_TTY option to allow removal of TTY 2013-01-18 16:15:27 -08:00
Makefile [media] drivers:media:radio: wl128x: Kconfig & Makefile for wl128x driver 2011-03-21 20:32:36 -03:00