Re: [RFC 1/1] drivers/scsi/bfa/bfad_debugfs.c: replace 2 kzalloc/copy_from_user to memdup_user

2014-06-02 Thread One Thousand Gnomes
On Fri, 30 May 2014 19:07:36 +0200 Fabian Frederick wrote: > (memdup_user can be used to replace kmalloc/copy_from_user. Not sure if it's > ok with kzalloc ...) > + kern_buf = memdup_user((void __user *)buf, nbytes); > + if (IS_ERR(kern_buf)) { > + printk(KERN_INFO "bfad[%

[RFC 1/1] drivers/scsi/bfa/bfad_debugfs.c: replace 2 kzalloc/copy_from_user to memdup_user

2014-05-30 Thread Fabian Frederick
(memdup_user can be used to replace kmalloc/copy_from_user. Not sure if it's ok with kzalloc ...) Cc: linux-scsi@vger.kernel.org Cc: Anil Gurumurthy Cc: "James E.J. Bottomley" Signed-off-by: Fabian Frederick --- drivers/scsi/bfa/bfad_debugfs.c | 30 ++ 1 file chang