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

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.