Smack: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 21 Aug 2016 18:17:36 +0000 (20:17 +0200)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 23 Aug 2016 16:58:21 +0000 (09:58 -0700)
commit63e24c497158c066583b9c06378d89ace694265a
treea9ae72852efa1c4ed56968e501f226fd672e0308
parent29b4817d4018df78086157ea3a55c1d9424a7cfc
Smack: 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: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smackfs.c