diff options
author | Jens Axboe <axboe@fb.com> | 2015-06-19 18:19:36 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-06-19 18:19:36 +0200 |
commit | 9470e4a693db84bee7becbba8de01af02bb23c9f (patch) | |
tree | 9267bd9cd8d882e8996ba5b2df80ac4277909519 /Kbuild | |
parent | cfq-iosched: move group scheduling functions under ifdef (diff) | |
download | linux-9470e4a693db84bee7becbba8de01af02bb23c9f.tar.xz linux-9470e4a693db84bee7becbba8de01af02bb23c9f.zip |
cfq-iosched: fix sysfs oops when attempting to read unconfigured weights
If none of the devices in the system are using CFQ, then attempting to
read:
/sys/fs/cgroup/blkio/blkio.leaf_weight
will results in a NULL dereference. Check for a valid cfq_group_data
struct before attempting to dereference it.
Reported-by: Andrey Wagin <avagin@gmail.com>
Fixes: e48453c3 ("block, cgroup: implement policy-specific per-blkcg data")
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions