Mageia Bugzilla – Attachment 212 Details for
Bug 628
Libusb crashes when MTP is used to access to a device
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
try to fix segfault
libusb.diff (text/plain), 458 bytes, created by
Thierry Vignaud
on 2011-04-08 16:01:43 CEST
(
hide
)
Description:
try to fix segfault
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2011-04-08 16:01:43 CEST
Size:
458 bytes
patch
obsolete
>diff -up ./libusb/core.c.tv ./libusb/core.c >--- ./libusb/core.c.tv 2009-06-19 21:10:35.000000000 +0000 >+++ ./libusb/core.c 2011-04-08 13:56:51.654387961 +0000 >@@ -748,6 +748,7 @@ static int usb_bulk_io(usb_dev_handle *d > int actual_length; > int r; > usbi_dbg("endpoint %x size %d timeout %d", ep, size, timeout); >+ return libusb_to_errno(LIBUSB_ERROR_ACCESS); > r = libusb_bulk_transfer(dev->handle, ep & 0xff, bytes, size, > &actual_length, timeout); >
diff -up ./libusb/core.c.tv ./libusb/core.c --- ./libusb/core.c.tv 2009-06-19 21:10:35.000000000 +0000 +++ ./libusb/core.c 2011-04-08 13:56:51.654387961 +0000 @@ -748,6 +748,7 @@ static int usb_bulk_io(usb_dev_handle *d int actual_length; int r; usbi_dbg("endpoint %x size %d timeout %d", ep, size, timeout); + return libusb_to_errno(LIBUSB_ERROR_ACCESS); r = libusb_bulk_transfer(dev->handle, ep & 0xff, bytes, size, &actual_length, timeout);
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 628
: 212