summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9029e0d)
This comparison should be != NULL, else a NULL pointer could be
dereferenced.
Test-Parameters: trivial
Fixes:
34b57a6f8fcd ("LU-12678 lnet: use list_first_entry() in lnet/klnds subdirectory.")
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I4510e2e0f2eb7b5bf86626e5ddb5ee537d3fae02
Reviewed-on: https://review.whamcloud.com/43558
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
spin_lock(&ps->ps_lock);
while ((po = list_first_entry_or_null(&ps->ps_pool_list,
struct kib_pool,
spin_lock(&ps->ps_lock);
while ((po = list_first_entry_or_null(&ps->ps_pool_list,
struct kib_pool,
po->po_failed = 1;
if (po->po_allocated == 0)
list_move(&po->po_list, zombies);
po->po_failed = 1;
if (po->po_allocated == 0)
list_move(&po->po_list, zombies);