Skip to contentSkip to conversation

checking d->grant_table against NULL?

DISCUSSION Jan Beulich 2 participants 2 messages Apr 11, 2012

lore
Share & tools
lore
#0 lore raw

gnttab_prepare_for_transfer() is the only place in grant_table.c where such a check happens. Is this check superfluous (and hence slightly misleading), or are similar checks missing throughout the file? I suppose the former, given that domains get inserted to the hash table only after grant_table_create() ran, and get removed again before calling grant_table_destroy().

Thanks, Jan

#1 lore raw
Quoted 6 lines · Jan Beulich

gnttab_prepare_for_transfer() is the only place in grant_table.c where such a check happens. Is this check superfluous (and hence slightly misleading), or are similar checks missing throughout the file? I suppose the former, given that domains get inserted to the hash table only after grant_table_create() ran, and get removed again before calling grant_table_destroy().

I agree, I'm pretty sure it's superfluous.

Quoted 7 lines

Thanks, Jan

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel