OSDN Git Service

staging: lustre: Replace strtoul with simple_strtoul
[android-x86/kernel.git] / drivers / staging / lustre / lustre / include / obd.h
index 55452e5..9ad8c26 100644 (file)
@@ -1472,7 +1472,7 @@ static inline bool filename_is_volatile(const char *name, int namelen, int *idx)
        }
        /* we have an idx, read it */
        start = name + LUSTRE_VOLATILE_HDR_LEN + 1;
-       *idx = strtoul(start, &end, 0);
+       *idx = simple_strtoul(start, &end, 0);
        /* error cases:
         * no digit, no trailing :, negative value
         */