drivers/usb/gadget/function/f_fs.c:3829:8-15: WARNING opportunity for memdup_user

From: kernel test robot
Date: Mon Mar 08 2021 - 02:11:44 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 144c79ef33536b4ecb4951e07dbc1f2b7fa99d32
commit: 8704fd73bf5658bf4b827643f7f526481082d83f USB: gadget: f_fs: remove likely/unlikely
date: 3 months ago
config: x86_64-randconfig-c002-20210307 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>


"coccinelle warnings: (new ones prefixed by >>)"
>> drivers/usb/gadget/function/f_fs.c:3829:8-15: WARNING opportunity for memdup_user

Please review and possibly fold the followup patch.

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip