diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2013-05-07 17:57:08 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-05-21 08:23:31 -0300 |
commit | 5255e4d9dfe2e33a5d68c54f6d1bee28fc5edd66 (patch) | |
tree | 752d04c450af3b822dc65df7eaa1068586e4c51d /drivers/media/radio/radio-si4713.c | |
parent | 88107675fba0b83d45744e9f2414dfea21686f87 (diff) |
[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>
Diffstat (limited to 'drivers/media/radio/radio-si4713.c')
0 files changed, 0 insertions, 0 deletions