Re: [PATCH spice-gtk 08/14] usb: remove useless device ref/unref

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message -----
> On 04/23/2014 09:09 PM, Marc-André Lureau wrote:
> > A code doing an unref() on an object just before manipulating it looks
> > horribly suspicious...
> 
> Suspicious indeed.
> 
> But probably it's better to move the unref below instead of removing the
> ref/unref (see below).
> 
> A device is ref'ed when install/uninstall starts and is unref'ed when
> install/uninstall finishes.
> 
> Possibly during install the ref is not needed (as there is another ref
> for the redir operation),
> but I think it is needed during uninstall.
> 

It wasn't needed until now (or we would have had crashes before), why would it be now?
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]