handle_action_lookup() in general can return NULL, but not
here as the handle is checked before, so add an assert.
CID#
1529415
CID#
1529416
if (!FLAGS_SET(mask, a))
continue;
- if (sleep_supported(handle_action_lookup(*i)->sleep_operation) > 0)
+ if (sleep_supported(ASSERT_PTR(handle_action_lookup(*i))->sleep_operation) > 0)
return *i;
}
inhibit_what_to_string(m->delayed_action->inhibit_what),
handle_action_to_string(handle));
- inhibit_operation = handle_action_lookup(handle)->inhibit_what;
+ inhibit_operation = ASSERT_PTR(handle_action_lookup(handle))->inhibit_what;
/* If the actual operation is inhibited, warn and fail */
if (inhibit_what_is_valid(inhibit_operation) &&