On Fri, 2018-05-18 at 10:56 +0200, Arend van Spriel wrote:
> 
> > +   buffer = kmalloc(sizeof(cmd), GFP_KERNEL);
> > +   if (!buffer)
> > +           return -ENOMEM;
> > +   memcpy(buffer, cmd, sizeof(cmd));

It should also use kmemdup() ;-)

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to