staging: usbip: fix potential segfault because of unchecked return value of strchr.
authorChristopher Harvey <charvey@matrox.com>
Fri, 23 Mar 2012 14:55:25 +0000 (10:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Apr 2012 16:47:06 +0000 (09:47 -0700)
commit2f5c638ced00fff2356ce0a02f16c8e928259750
tree77817ec12b268d756796af18177bfa8a784b435a
parent310c6a762e224ae38efac304c936b82ad89a4ff1
staging: usbip: fix potential segfault because of unchecked return value of strchr.

This doesn't happen with the usbip virtual hci module, but another
module wanting to interface with this user space code could cause a
seg-fault by sending data without newlines.

Signed-off-by: Christopher Harvey <charvey@matrox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/libsrc/vhci_driver.c