s390/tape: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 20 Aug 2016 17:25:34 +0000 (19:25 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 24 Aug 2016 07:23:57 +0000 (09:23 +0200)
commit2ccb5bf0e2f190c825c69087aa40c89db89ca1ad
tree43194d4b269a8ee9e35395e13303f29dd612a94c
parentbd3a172557d6685f5fbd4b09713f74b84872e2b9
s390/tape: 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>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/tape_3590.c