USB: otg/ulpi: bail out on read errors
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 15 Jun 2010 10:34:22 +0000 (12:34 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 30 Jun 2010 15:16:06 +0000 (08:16 -0700)
commit7b4a036722cfab2b3922685ad473fac35a55c3fa
tree0f3bb015fce2f925c9fb4107dad82c3f6d0380ce
parent2bb14cbf04ded4b9e394a6ba9e4f06b82fbac8b2
USB: otg/ulpi: bail out on read errors

otg_read may return errnos, so bail out correctly to prevent bogus
ID-numbers.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Daniel Mack <daniel@caiaq.de>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/ulpi.c