block: fix return value on cfq_init() failure
authorTejun Heo <tj@kernel.org>
Mon, 4 Jun 2012 08:01:38 +0000 (10:01 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Jun 2012 08:01:38 +0000 (10:01 +0200)
commitfd7949564ced88385ca7758a4c1f47c274233dd5
treeb2f5ec960e17c604148f17239824c366954d8135
parent87c9ea76a242c2f9063e2a8f3e90846c932c61a7
block: fix return value on cfq_init() failure

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