cifsd: fix memdup.cocci warnings
authorkernel test robot <lkp@intel.com>
Fri, 2 Apr 2021 03:17:24 +0000 (12:17 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 11 May 2021 00:15:36 +0000 (19:15 -0500)
commit86f52978465b8f4e384880a5fd0543e9e455fb62
tree120ca8a92b5d577c404c01f95aa102cc816aa0d7
parent822bc8ea514ecd4a8bbb86237858146ca8845eba
cifsd: fix memdup.cocci warnings

fs/cifsd/smb2pdu.c:1177:27-34: WARNING opportunity for kmemdup

 Use kmemdup rather than duplicating its implementation

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

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/smb2pdu.c