mtd: return success on blktrans_ioctl
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Wed Aug 4 06:59:01 EDT 2010
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=007c2d8769139f3c9e99114219d6800aeccdfaef
Commit: 007c2d8769139f3c9e99114219d6800aeccdfaef
Parent: 8c1a1158c98b810d34b469c787840ac16904e5fa
Author: Dan Carpenter <error27 at gmail.com>
AuthorDate: Mon May 31 16:03:38 2010 +0200
Committer: David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Mon Aug 2 09:01:47 2010 +0100
mtd: return success on blktrans_ioctl
There was a break missing so we returned -ENOTTY on success instead of
zero. This was introduced by 048d8719956: "mtd: blktrans: Hotplug fixes"
Signed-off-by: Dan Carpenter <error27 at gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
drivers/mtd/mtd_blkdevs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index 03e19c1..a6bb586 100644
--- a/drivers/mtd/mtd_blkdevs.c
+++ b/drivers/mtd/mtd_blkdevs.c
@@ -245,6 +245,7 @@ static int blktrans_ioctl(struct block_device *bdev, fmode_t mode,
switch (cmd) {
case BLKFLSBUF:
ret = dev->tr->flush ? dev->tr->flush(dev) : 0;
+ break;
default:
ret = -ENOTTY;
}
More information about the linux-mtd-cvs
mailing list