|
@@ -198,7 +198,9 @@ static void usb_tranzport_abort_transfers(struct usb_tranzport *dev)
|
|
|
{ \
|
|
|
struct usb_interface *intf = to_usb_interface(dev); \
|
|
|
struct usb_tranzport *t = usb_get_intfdata(intf); \
|
|
|
- int temp = simple_strtoul(buf, NULL, 10); \
|
|
|
+ unsigned long temp; \
|
|
|
+ if (strict_strtoul(buf, 10, &temp)) \
|
|
|
+ return -EINVAL; \
|
|
|
t->value = temp; \
|
|
|
return count; \
|
|
|
} \
|