projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87c9ea7
)
block: fix return value on cfq_init() failure
author
Tejun Heo
<tj@kernel.org>
Mon, 4 Jun 2012 08:01:38 +0000
(10:01 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 4 Jun 2012 08:01:38 +0000
(10:01 +0200)
cfq_init() would return zero after kmem cache creation failure. Fix
so that it returns -ENOMEM.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/cfq-iosched.c
patch
|
blob
|
history
diff --git
a/block/cfq-iosched.c
b/block/cfq-iosched.c
index 673c977cc2bfa238e0fe0efa6dddac5193fbccd8..ae5113d3ebaece915247e9d9d0d108d0bb583d11 100644
(file)
--- a/
block/cfq-iosched.c
+++ b/
block/cfq-iosched.c
@@
-4202,6
+4202,7
@@
static int __init cfq_init(void)
if (ret)
return ret;
+ ret = -ENOMEM;
cfq_pool = KMEM_CACHE(cfq_queue, 0);
if (!cfq_pool)
goto err_pol_unreg;