]> git.baikalelectronics.ru Git - kernel.git/commit
fail_function: switch to memdup_user_nul() helper
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 26 Aug 2022 07:33:35 +0000 (15:33 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 04:55:10 +0000 (21:55 -0700)
commit4bd7c8ee760637f9571a28f2c4c561dc4ac6da34
tree6e1cfdd9761429c12e54a6b9790d4fa394e64afc
parentd20637e25798263168f9b4229fc7b1a5ddef1361
fail_function: switch to memdup_user_nul() helper

Use memdup_user_nul() helper instead of open-coding to simplify the code.

Link: https://lkml.kernel.org/r/20220826073337.2085798-1-yangyingliang@huawei.com
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/fail_function.c