]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: iscsi: Switch to kmemdup_nul()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 2 Apr 2021 09:25:17 +0000 (17:25 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 10 May 2021 17:24:03 +0000 (13:24 -0400)
commitb4ad4d98b2fc7b42b40980989cda2d598864dbec
tree2bc53549a9dab87b1e15cde2a02a7c53d74ef9b0
parent64cb644f571887e235e5bc327f486c1801e2f512
scsi: target: iscsi: Switch to kmemdup_nul()

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

Link: https://lore.kernel.org/r/20210402092517.2445595-1-yangyingliang@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/iscsi/iscsi_target_nego.c
drivers/target/iscsi/iscsi_target_parameters.c