This patch looks correct, but as you note this library is deprecated. I don't think it makes sense for us to patch this code in Ubuntu, as opposed to either:
- working to migrate the remaining reverse-dependencies of libusb to libusb-1.0 in Ubuntu;
- working with the Debian maintainer (who maintains both libusb and libusb-1.0) to replace libusb-0.1 with libusb-compat-0.1.
This patch looks correct, but as you note this library is deprecated. I don't think it makes sense for us to patch this code in Ubuntu, as opposed to either:
- working to migrate the remaining reverse- dependencies of libusb to libusb-1.0 in Ubuntu;
- working with the Debian maintainer (who maintains both libusb and libusb-1.0) to replace libusb-0.1 with libusb-compat-0.1.