• Dimitris Lampridis's avatar
    sw: be more careful with sysfs attributes · ed89ad4c
    Dimitris Lampridis authored
    in case the device still has the FTDI VID and PID, the ftdi_sio module
    might be loaded, in which case some of the udev matches will not have
    attributes such as "busnum", "devnum" (and certainly not "serial").
    
    We can be more careful by checking if  udev_device_get_sysattr_value()
    returns NULL before doing the strcpy() to avoid segfaults.
    ed89ad4c
Name
Last commit
Last update
hardware Loading commit data...
software Loading commit data...