usb: gadget: functionfs: fix missing access_ok checks
authorDaniel Walter <dwalter@sigma-star.at>
Wed, 18 Nov 2015 16:15:49 +0000 (17:15 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 18 Nov 2015 21:09:26 +0000 (15:09 -0600)
commit7fe9a937d5156761cf79dc354f616c726b5c09e2
treea70d213367d46deeffa4cc8943c7502cfc1f41bd
parent183e53e8ddf4165c3763181682189362d6b403f7
usb: gadget: functionfs: fix missing access_ok checks

use safe copy_*_user instead of unsafe __copy_*_user
functions when accessing userland memory.

Signed-off-by: Daniel Walter <dwalter@sigma-star.at>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_fs.c