misc: xilinx_sdfec: Use memdup_user() as a cleanup
authorZou Wei <zou_wei@huawei.com>
Wed, 22 Apr 2020 02:58:50 +0000 (10:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 14:32:51 +0000 (16:32 +0200)
commit15665c062b8c529d162479b306af23bc37bb6a12
treebf0feb0fe99a705d5d8278e076996a7da107ed9f
parent8419759f98adb5a538a40efaf66ebe9d136bc3d4
misc: xilinx_sdfec: Use memdup_user() as a cleanup

Fix coccicheck warning which recommends to use memdup_user().

This patch fixes the following coccicheck warnings:

drivers/misc/xilinx_sdfec.c:652:8-15: WARNING opportunity for memdup_user

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1587524330-119776-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/xilinx_sdfec.c