]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 28 Feb 2017 04:40:04 +0000 (20:40 -0800)
commit2b2d8e1d2074aa533d2d92c732ad5acbcb970714
tree853367f531bd0aa2e1fe1f9565aa4f528379494a
parentfab1c667febd89be33b2b4733c67ebbda8e27fa8
scsi: megaraid_sas: Use memdup_user() rather than duplicating its implementation

Orabug: 25568930

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>
(cherry picked from commit 709ab231f8b4417411147dd9730928ba214d5c31)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c