git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ceab71
)
cfq-iosched: fix sysfs oops when attempting to read unconfigured weights
author
Jens Axboe
<axboe@fb.com>
Fri, 19 Jun 2015 16:19:36 +0000
(10:19 -0600)
committer
Jens Axboe
<axboe@fb.com>
Fri, 19 Jun 2015 16:19:36 +0000
(10:19 -0600)
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>
block/cfq-iosched.c
patch
|
blob
|
history
diff --cc
block/cfq-iosched.c
Simple merge