Staging: zram: make zram_read return a bio error if the device is not initialized
authorJerome Marchand <jmarchan@redhat.com>
Fri, 17 Dec 2010 16:03:15 +0000 (17:03 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 21 Jan 2011 00:07:00 +0000 (16:07 -0800)
commit1aa326640d1e91d32179310441fa3030c501d0f3
tree14eaed82cdadf87d92333c5dd4d60f8c4cd50198
parentf2da98739da4e20e907f8317d513868764002d31
Staging: zram: make zram_read return a bio error if the device is not initialized

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