commit | 692e1033e785e89ae75e3a799ef032392f6c4f9b | [log] [tgz] |
---|---|---|
author | Peter A. Bigot <pab@pabigot.com> | Thu Jan 03 23:36:28 2019 -0600 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Wed Jan 23 20:46:49 2019 +0100 |
tree | c3488e24fde5508878bbb9501abdfb7852c94f5b | |
parent | 82ad0d24ca2e2e117d4e50656d61fec46355f429 [diff] |
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: Peter A. Bigot <pab@pabigot.com>