diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-03-06 13:25:01 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2012-03-06 15:42:20 +0100 |
commit | d0b6fdd0d329b231704952e077d417f854055226 (patch) | |
tree | 8baf33c6c73a00490b887b2b07aba2e8609614ed | |
parent | fd3eafe2c4599d97425b27c049f078401576a2a0 (diff) |
usbredirhost: Return usbredirhost_read_device_lost on reset failure
Failure to reset a device means that we've lost the device, report this
to the user by returning usbredirhost_read_device_lost from the
usbredirhost_read_guest_data call which triggered the reset.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | usbredirhost/usbredirhost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usbredirhost/usbredirhost.c b/usbredirhost/usbredirhost.c index 24e4fc5..28614d3 100644 --- a/usbredirhost/usbredirhost.c +++ b/usbredirhost/usbredirhost.c @@ -1386,8 +1386,8 @@ static void usbredirhost_reset(void *priv) usleep(100000); } else { ERROR("resetting device: %d", r); - usbredirhost_handle_disconnect(host); - FLUSH(host); + usbredirhost_clear_device(host); + host->read_status = usbredirhost_read_device_lost; } } |