> > + page_data->data = kmalloc(page_data->length, GFP_KERNEL); > > + if (!page_data->data) > > + return -ENOMEM; > > + > > + memcpy(page_data->data, data, page_data->length); > > coccicheck suggests to use kmemdup() here: > > net/ethtool/cmis_cdb.c:504:19-26: WARNING opportunity for kmemdup > -- > pw-bot: cr Will fix, thanks.