jsflash: missed conversion from rq->buffer to bio_data(rq->bio)
authorJens Axboe <axboe@fb.com>
Wed, 16 Apr 2014 20:14:33 +0000 (14:14 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 16 Apr 2014 20:15:25 +0000 (14:15 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/sbus/char/jsflash.c

index 4ccb5d869389e353113692d20f02f66d002046cd..a40ee1e37486bd9b05062074507fd2a64d472677 100644 (file)
@@ -207,7 +207,7 @@ static void jsfd_do_request(struct request_queue *q)
                        goto end;
                }
 
-               jsfd_read(req->buffer, jdp->dbase + offset, len);
+               jsfd_read(bio_data(req->bio), jdp->dbase + offset, len);
                err = 0;
        end:
                if (!__blk_end_request_cur(req, err))