X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=Documentation%2Ftarget%2Ftcm_mod_builder.py;h=54d29c1320ed665daa5b73c652bf4b50af63b488;hb=44598f98b98e54beca34dc836b38eaea40be1abf;hp=3fe0d812dcecf28262e38e2cfed9d2ff11b41e82;hpb=39df01cd6ce9f6dd755ace0030e2bebe75da7727;p=~andy%2Flinux diff --git a/Documentation/target/tcm_mod_builder.py b/Documentation/target/tcm_mod_builder.py index 3fe0d812dce..54d29c1320e 100755 --- a/Documentation/target/tcm_mod_builder.py +++ b/Documentation/target/tcm_mod_builder.py @@ -300,7 +300,7 @@ def tcm_mod_build_configfs(proto_ident, fabric_mod_dir_var, fabric_mod_name): buf += " int ret;\n\n" buf += " if (strstr(name, \"tpgt_\") != name)\n" buf += " return ERR_PTR(-EINVAL);\n" - buf += " if (strict_strtoul(name + 5, 10, &tpgt) || tpgt > UINT_MAX)\n" + buf += " if (kstrtoul(name + 5, 10, &tpgt) || tpgt > UINT_MAX)\n" buf += " return ERR_PTR(-EINVAL);\n\n" buf += " tpg = kzalloc(sizeof(struct " + fabric_mod_name + "_tpg), GFP_KERNEL);\n" buf += " if (!tpg) {\n"