Searched hist:a66c38a171ed25488debf80247a9e72e1026e82c (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/block/ |
H A D | bfq-wf2q.c | diff a66c38a171ed25488debf80247a9e72e1026e82c Tue May 09 04:37:27 CDT 2017 Paolo Valente <paolo.valente@linaro.org> block, bfq: use pointer entity->sched_data only if set
In the function __bfq_deactivate_entity, the pointer entity->sched_data could happen to be used before being properly initialized. This led to a NULL pointer dereference. This commit fixes this bug by just using this pointer only where it is safe to do so.
Reported-by: Tom Harrison <l12436.tw@gmail.com> Tested-by: Tom Harrison <l12436.tw@gmail.com> Signed-off-by: Paolo Valente <paolo.valente@linaro.org> Signed-off-by: Jens Axboe <axboe@fb.com>
|