tcm_loop: fixup tpgt string to integer conversion
authorMing Lin <mlin@kernel.org>
Mon, 30 Mar 2015 06:11:30 +0000 (23:11 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:58 +0000 (23:27 -0700)
commit2e1cd90d718a5fc721e0caa0dc9f037d9b1f46b8
treedb299afd5e70126a52bba991a79bd2daffdf9957
parent9e35eff449fc7c7106ea0fd64457afacf68f3bb3
tcm_loop: fixup tpgt string to integer conversion

Currently, for example, mkdir "tpgt_xyz" doesn't return error.
mkdir /sys/kernel/config/target/loopback/naa.60014055f195952b/tpgt_xyz

Replace obsoleted simple_strtoul with kstrtoul and check the conversion.

Signed-off-by: Ming Lin <mlin@kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c