Bugzilla – Attachment 624 Details for
Bug 1538
Segfault during device scan on lwla1034
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
show a message instead of libusb calls with null
lwla.diff (text/plain), 724 bytes, created by
Tim Hatch
on 2020-04-23 19:13:57 CEST
(
hide
)
Description:
show a message instead of libusb calls with null
Filename:
MIME Type:
Creator:
Tim Hatch
Created:
2020-04-23 19:13:57 CEST
Size:
724 bytes
patch
obsolete
>--- src/hardware/sysclk-lwla/api.c.orig 2020-04-23 08:18:03.312803178 -0700 >+++ src/hardware/sysclk-lwla/api.c 2020-04-23 08:19:41.039466577 -0700 >@@ -299,13 +299,15 @@ > return SR_ERR_BUG; > } > >- /* Download of the shutdown bitstream, if any. */ >- ret = (*devc->model->apply_fpga_config)(sdi); >- if (ret != SR_OK) >- sr_warn("Unable to shut down device."); >- >- if (usb->devhdl) >+ if (usb->devhdl) { >+ /* Download of the shutdown bitstream, if any. */ >+ ret = (*devc->model->apply_fpga_config)(sdi); >+ if (ret != SR_OK) >+ sr_warn("Unable to shut down device."); > libusb_release_interface(usb->devhdl, USB_INTERFACE); >+ } else { >+ sr_warn("Unable to shut down device, no usb handle."); >+ } > > sr_usb_close(usb); >
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 Raw
Actions:
View
Attachments on
bug 1538
: 624