usb-redir: Always clear device state on filter reject
authorHans de Goede <hdegoede@redhat.com>
Sun, 26 Feb 2012 15:14:44 +0000 (16:14 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 27 Feb 2012 12:37:37 +0000 (13:37 +0100)
commit5b3bd68244c87e161ea309ed380f216acf7cd754
tree1529e073c7a25a276a3dee7dc3af3b43ae936e3a
parent52234bc00d5cf13cf96b3d632a4e0aa34cec08be
usb-redir: Always clear device state on filter reject

Always call usbredir_device_disconnect() when usbredir_check_filter() fails
to clean up all the device state (ie received endpoint info).

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
usb-redir.c