projects
/
platform
/
core
/
api
/
usb-host.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baa8297
)
svace fix
29/175229/1
accepted/tizen/unified/20180411.065540
submit/tizen/20180409.103812
author
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Mon, 9 Apr 2018 10:33:44 +0000
(19:33 +0900)
committer
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Mon, 9 Apr 2018 10:34:11 +0000
(19:34 +0900)
Change-Id: I347ac6e7865b3a70de1c301afa942b648651ad6c
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
src/usb_host.c
patch
|
blob
|
history
diff --git
a/src/usb_host.c
b/src/usb_host.c
index 028f0c0cbb771666fe07d06ce058b545d00d4ad2..768566ef371041f1d68c355d009a0d3a5b1bffa2 100644
(file)
--- a/
src/usb_host.c
+++ b/
src/usb_host.c
@@
-1906,6
+1906,12
@@
int usb_host_create_isochronous_transfer(usb_host_endpoint_h ep, usb_host_transf
transfer_data->user_data = user_data;
rtransfer->lusb_transfer = libusb_alloc_transfer(num_iso_packets);
+ if (!rtransfer->lusb_transfer) {
+ _E("Failed to alloc libusb transfer");
+ ret = USB_HOST_ERROR_OUT_OF_MEMORY;
+ goto free_transfer_data;
+ }
+
rtransfer->allocated_iso_packets = num_iso_packets;
rtransfer->iso_buffer_usage = 0;