From ba164b0fe0c0a8af8c5a25bf02d2f68b1fad810d Mon Sep 17 00:00:00 2001 From: Hongliang TIAN Date: Tue, 29 Oct 2013 10:22:07 +0800 Subject: Fix a memory mapping bug in sbull.c --- sbull/sbull.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbull/sbull.c b/sbull/sbull.c index 6a2919a..507d213 100644 --- a/sbull/sbull.c +++ b/sbull/sbull.c @@ -137,7 +137,7 @@ static int sbull_xfer_bio(struct sbull_dev *dev, struct bio *bio) sbull_transfer(dev, sector, bio_cur_bytes(bio) >> 9, buffer, bio_data_dir(bio) == WRITE); sector += bio_cur_bytes(bio) >> 9; - __bio_kunmap_atomic(bio, KM_USER0); + __bio_kunmap_atomic(buffer, KM_USER0); } return 0; /* Always "succeed" */ } -- cgit v1.2.1-18-gbd029