On Sat, Oct 13, 2018 at 05:00:37PM +0800, yhchuang@xxxxxxxxxxx wrote: > + buf = kmalloc(size, GFP_KERNEL); > + memcpy(buf, data, size); Error check and it could be replaced by kmemdup. Regards Stanislaw
On Sat, Oct 13, 2018 at 05:00:37PM +0800, yhchuang@xxxxxxxxxxx wrote: > + buf = kmalloc(size, GFP_KERNEL); > + memcpy(buf, data, size); Error check and it could be replaced by kmemdup. Regards Stanislaw