Re: [Spice-devel] [PATCH spice-gtk] usbredir: prevent crash when calling without host

2014-12-22 Thread Christophe Fergeau
ACK. Christophe On Sat, Dec 20, 2014 at 01:09:24AM +0100, Marc-André Lureau wrote: > Quite annoyingly, usbredir doesn't have public functions arguments > preconditions, and will weirdly run the flush callback during > initialization. > > With 201a8c2 change, the channel state is kept as it is wh

Re: [Spice-devel] [PATCH spice-gtk] usbredir: prevent crash when calling without host

2014-12-20 Thread Fabio Fantoni
Il 20/12/2014 01:09, Marc-André Lureau ha scritto: > Quite annoyingly, usbredir doesn't have public functions arguments > preconditions, and will weirdly run the flush callback during > initialization. > > With 201a8c2 change, the channel state is kept as it is when calling > reset. This will resul

[Spice-devel] [PATCH spice-gtk] usbredir: prevent crash when calling without host

2014-12-19 Thread Marc-André Lureau
Quite annoyingly, usbredir doesn't have public functions arguments preconditions, and will weirdly run the flush callback during initialization. With 201a8c2 change, the channel state is kept as it is when calling reset. This will result in the following crash that was avoided before thanks to a p