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] Fix blkback/blktap sysfs read bug.

>>> "Joe Jin" <joe.jin@xxxxxxxxxx> 20.01.10 11:51 >>>
>On 2010-01-20 07:46, Jan Beulich wrote:
>> And btw., in both cases with the lock added there's no need to check
>> both 'be' and 'be->blkif', since be->blkif can't be NULL when be is
>> non-NULL.
>
>No we must check it, as I have methioned, root cause is vbd was been
>freed after open sysfs file.

Why? You're inside the locked region, so either 'be' is NULL, or both
'be' and 'be->blkif' are non-NULL.

Jan


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