Staging: rspiusb: Check usb_buffer_map_sg() retval
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 22 Aug 2009 17:32:44 +0000 (19:32 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:29 +0000 (12:02 -0700)
commit48c8276d7ac534d62c594c9a493130ff9137675d
treef7634439718ce421401e2160bf98b7093b1a5138
parent77943d31b7dfdbd1ad58d49bd16ae6e7601bcd6c
Staging: rspiusb: Check usb_buffer_map_sg() retval

usb_buffer_map_sg() may return -1, check this directly.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Reviewed-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rspiusb/rspiusb.c