scsi: megaraid_sas: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 21 Aug 2016 08:39:04 +0000 (10:39 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Aug 2016 02:46:58 +0000 (22:46 -0400)
commit709ab231f8b4417411147dd9730928ba214d5c31
treedde326964cc71b05684f2856c55e999555b594c6
parent2a1e8447153259922c0d97eb5d35f76c9b41fbb0
scsi: megaraid_sas: Use memdup_user() rather than duplicating its implementation

Reuse existing functionality from memdup_user() instead of keeping
duplicate source code.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c