]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
brd_make_request() always returns 0, which doesn't make much sense.
authorEric Miao <eric.miao@linaro.org>
Wed, 24 Aug 2011 23:46:34 +0000 (09:46 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 1 Sep 2011 03:28:43 +0000 (13:28 +1000)
Signed-off-by: Eric Miao <eric.miao@linaro.org>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/brd.c

index dba1c32e1ddfc48229d93d014fedaa9c370e92e3..a9587ee5136d75d5d48a5f635b13611168d001a9 100644 (file)
@@ -360,7 +360,7 @@ static int brd_make_request(struct request_queue *q, struct bio *bio)
 out:
        bio_endio(bio, err);
 
-       return 0;
+       return err;
 }
 
 #ifdef CONFIG_BLK_DEV_XIP