From: Alexey Khoroshilov Date: Tue, 7 May 2013 20:57:08 +0000 (-0300) Subject: [media] wl128x: do not call copy_to_user() while holding spinlocks X-Git-Tag: v3.11-rc1~17^2~350 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5255e4d9dfe2e33a5d68c54f6d1bee28fc5edd66;p=pandora-kernel.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed