]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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>
Mon, 19 Apr 2021 00:20:51 +0000 (19:20 -0500)
commit987b53060307e8b16127756276b8b3977bc5fa73
tree6c8b44987935d7c53c30d380afcc7ac9afaf8750
parentb446e5053d74cd2746af22549940e7770e188d50
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