CIFS: Use memdup_user() rather than duplicating its implementation
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 5 Nov 2019 20:30:25 +0000 (21:30 +0100)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2019 07:14:53 +0000 (01:14 -0600)
commitcfaa1181097f6a1a6f4f6670ebc97848efda0883
treeb5b020b9d16b84ebef9fe9ec625dd51f579fbc28
parentacd4680e2bef2405a0e1ef2149fbb01cce7e116c
CIFS: Use memdup_user() rather than duplicating its implementation

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

Generated by: scripts/coccinelle/api/memdup_user.cocci

Fixes: f5b05d622a3e99e6a97a189fe500414be802a05c ("cifs: add IOCTL for QUERY_INFO passthrough to userspace")
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c