[PATCH] staging: i4l: icn: fix memdup_user.cocci warnings

Sudip Mukherjee sudipm.mukherjee at gmail.com
Tue Aug 23 06:49:02 UTC 2016


On Mon, Aug 22, 2016 at 09:19:36PM -0400, Greg Kroah-Hartman wrote:
> On Tue, Aug 23, 2016 at 08:36:58AM +0800, kbuild test robot wrote:
> > drivers/staging/i4l/icn/icn.c:813:11-18: WARNING opportunity for memdup_user
> > 
> >  Use memdup_user rather than duplicating its implementation
> >  This is a little bit restricted to reduce false positives
> > 
> > Generated by: scripts/coccinelle/api/memdup_user.cocci
> > 
> > CC: Sudip Mukherjee <sudipm.mukherjee at gmail.com>
> > Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
> > ---
> > 
<snip>
> 
> There's no patch here, did something go wrong?

No problem. I will make the patch for memdup_user and send today.

regards
sudip


More information about the devel mailing list