WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Improve xenbus timeout error message


On 30 Jun 2006, at 18:17, Keir Fraser wrote:

Note, the original patch leaked device references when printing out the warning if there are multiple disconnected devices. Fixed in the second
patch.

Ha. And I spotted that and already fixed in a third patch (10574): The very final. :-)

Also your fix is racy, since it calls bus_find_device() on a dev that you have no reference to (since you already called put_device()). So there's a vanishingly small possibility that the dev could disappear in the meantime.

I replaced with a straightforward bus_for_each_device iterator with the printk inside the iterator callback.

 -- Keir


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel