libusbhost: Fix breakage due to not storing dev_name in struct usb_device
Change-Id: Iefac9b31f900edb2dbd594f9eff9113b2038757d Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
parent
ee878753f9
commit
93aff72d9b
1 changed files with 1 additions and 0 deletions
|
|
@ -259,6 +259,7 @@ struct usb_device *usb_device_new(const char *dev_name, int fd)
|
|||
if (length < 0)
|
||||
goto failed;
|
||||
|
||||
strncpy(device->dev_name, dev_name, sizeof(device->dev_name) - 1);
|
||||
device->fd = fd;
|
||||
device->desc_length = length;
|
||||
// assume we are writeable, since usb_device_get_fd will only return writeable fds
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue