staging/usbip: fix store_attach() sscanf return value check
authorShuah Khan <shuah.kh@samsung.com>
Tue, 25 Mar 2014 12:47:13 +0000 (06:47 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2014 21:43:01 +0000 (14:43 -0700)
commitde4734bc651d19ed71ad30222aac9b1416e1bd52
treee71fb13ae4101035196c48d9e28e3d09291b37de
parent21c5e8408d105386c54603aed2cae9195143d87d
staging/usbip: fix store_attach() sscanf return value check

sscanf() parses the input buffer for four input items. However,
the return value check is incorrect, as it checks for one input
item instead of four which is what it is expecting in the input
buffer. As a result, sscanf() will always fail even when the input
buffer is correct.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/vhci_sysfs.c