usbip: Fix sscanf handling
authorAlan <gnomes@lxorguk.ukuu.org.uk>
Wed, 11 Dec 2013 18:32:59 +0000 (18:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2013 01:07:13 +0000 (17:07 -0800)
commit2d32927127f44d755780aa5fa88c8c34e72558f8
tree7a7f48e6b54f7b34422fb999138a417a49389afc
parent66a01f1158cf5dbe18dd2d5db7bb24080363ae21
usbip: Fix sscanf handling

Scan only to the length permitted by the buffer

One of a set of sscanf problems noted by Jackie Chang

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/libsrc/usbip_common.c
drivers/staging/usbip/userspace/libsrc/vhci_driver.c