Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 414404 Details for
Bug 562868
dev-libs/libusb-1.0.19: Segfault on usb disconnect, reconnect
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libusb-1.0.20_fix_null_ref_on_usb_reconnect.patch
libusb-1.0.20_fix_null_ref_on_usb_reconnect.patch (text/plain), 750 bytes, created by
Matthew Stapleton
on 2015-10-12 04:57:36 UTC
(
hide
)
Description:
libusb-1.0.20_fix_null_ref_on_usb_reconnect.patch
Filename:
MIME Type:
Creator:
Matthew Stapleton
Created:
2015-10-12 04:57:36 UTC
Size:
750 bytes
patch
obsolete
>diff -Naur libusb-1.0.20/libusb/os/linux_usbfs.c libusb-1.0.20-2/libusb/os/linux_usbfs.c >--- libusb-1.0.20/libusb/os/linux_usbfs.c 2015-09-06 03:20:40.000000000 +1000 >+++ libusb-1.0.20-2/libusb/os/linux_usbfs.c 2015-10-12 14:43:32.765558144 +1000 >@@ -1034,9 +1034,11 @@ > usbi_mutex_lock(&ctx->usb_devs_lock); > list_for_each_entry(it, &ctx->usb_devs, list, struct libusb_device) { > struct linux_device_priv *priv = _device_priv(it); >- if (0 == strcmp (priv->sysfs_dir, parent_sysfs_dir)) { >- dev->parent_dev = libusb_ref_device(it); >- break; >+ if (priv->sysfs_dir) { >+ if (0 == strcmp (priv->sysfs_dir, parent_sysfs_dir)) { >+ dev->parent_dev = libusb_ref_device(it); >+ break; >+ } > } > } > usbi_mutex_unlock(&ctx->usb_devs_lock);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 562868
: 414404