Skip to content
Commit 692e1033 authored by Peter Bigot's avatar Peter Bigot Committed by Carles Cufi
Browse files

kernel: sched: fix empty list detection



CONTAINER_OF() on a NULL pointer returns some offset around NULL and not
another NULL pointer.  We have to check for that ourselves.

This only worked because the dnode happened to be at the start of the
struct.

Signed-off-by: default avatarPeter A. Bigot <pab@pabigot.com>
parent 82ad0d24
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment