Skip to content
Commit 2e1cd90d authored by Ming Lin's avatar Ming Lin Committed by Nicholas Bellinger
Browse files

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: default avatarMing Lin <mlin@kernel.org>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 9e35eff4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment