diff options
author | Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> | 2015-09-18 14:16:58 +0530 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-10-06 12:50:39 +1100 |
commit | 8d2f3ba63106c09ce797d7cbdc1e3039ccc99047 (patch) | |
tree | 836c113fde774fa2c74b0c27603561e44e5d08c4 /lib/libusb | |
parent | 2a37eb9a6a0c02622ee17c17b6de14362999737d (diff) | |
download | SLOF-8d2f3ba63106c09ce797d7cbdc1e3039ccc99047.zip SLOF-8d2f3ba63106c09ce797d7cbdc1e3039ccc99047.tar.gz SLOF-8d2f3ba63106c09ce797d7cbdc1e3039ccc99047.tar.bz2 |
usb-xhci: return on allocation failure
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libusb')
-rw-r--r-- | lib/libusb/usb-xhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libusb/usb-xhci.c b/lib/libusb/usb-xhci.c index c4ee387..73d3e52 100644 --- a/lib/libusb/usb-xhci.c +++ b/lib/libusb/usb-xhci.c @@ -1228,7 +1228,8 @@ static void xhci_init_bulk_ep(struct usb_dev *dev, struct usb_pipe *pipe) if (!seg->trbs) { if (!xhci_alloc_seg(seg, XHCI_DATA_TRBS_SIZE, TYPE_BULK)) { - dprintf("Failed allocating seg\n"); + printf("usb-xhci: allocation failed for bulk endpoint\n"); + return; } } else { xhci_init_seg(seg, XHCI_DATA_TRBS_SIZE, TYPE_BULK); |