projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2da987
)
Staging: zram: make zram_read return a bio error if the device is not initialized
author
Jerome Marchand
<jmarchan@redhat.com>
Fri, 17 Dec 2010 16:03:15 +0000
(17:03 +0100)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 21 Jan 2011 00:07:00 +0000
(16:07 -0800)
Make zram_read() return a bio error if the device is not initialized
instead of pretending nothing happened.
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Acked-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/zram_drv.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/zram/zram_drv.c
b/drivers/staging/zram/zram_drv.c
index 0ab931e9ee7e03ee442083c8c747f3dc7105be46..01d6dd9525813fe2e3dfd1e035e1e241a505ab8c 100644
(file)
--- a/
drivers/staging/zram/zram_drv.c
+++ b/
drivers/staging/zram/zram_drv.c
@@
-208,8
+208,7
@@
static int zram_read(struct zram *zram, struct bio *bio)
struct bio_vec *bvec;
if (unlikely(!zram->init_done)) {
- set_bit(BIO_UPTODATE, &bio->bi_flags);
- bio_endio(bio, 0);
+ bio_endio(bio, -ENXIO);
return 0;
}