kstrtoul to strict_strtoul for old kernel support
authorGeorgios D. Tsoukalas <gtsouk@cslab.ece.ntua.gr>
Tue, 5 Jun 2012 18:30:58 +0000 (21:30 +0300)
committerStratos Psomadakis <psomas@grnet.gr>
Wed, 6 Jun 2012 11:59:54 +0000 (14:59 +0300)
xseg/peers/kernel/xsegbd.c

index 5ee7af4..69c5f93 100644 (file)
@@ -839,7 +839,7 @@ static ssize_t xsegbd_remove(struct bus_type *bus, const char *buf, size_t count
        int id, ret;
        unsigned long ul_id;
 
-       ret = kstrtoul(buf, 10, &ul_id);
+       ret = strict_strtoul(buf, 10, &ul_id);
        if (ret)
                return ret;