cfq-iosched: fix other locations where blkcg_to_cfqgd() can return NULL
authorJens Axboe <axboe@fb.com>
Sat, 20 Jun 2015 16:26:50 +0000 (10:26 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 20 Jun 2015 16:26:50 +0000 (10:26 -0600)
commitae994ea972473c0ace9d55f718b60f0727af1381
tree4f8f4de062db1d65af8480f2d04414b16aa2e168
parent9470e4a693db84bee7becbba8de01af02bb23c9f
cfq-iosched: fix other locations where blkcg_to_cfqgd() can return NULL

Commit 9470e4a693db only covered the initial bug report, there are
other spots in CFQ where we need to check that we actually have
a valid cfq_group_data structure.

Fixes: e48453c3 ("block, cgroup: implement policy-specific per-blkcg data")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c