projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1a115
)
mtd: return success on blktrans_ioctl
author
Dan Carpenter
<error27@gmail.com>
Mon, 31 May 2010 14:03:38 +0000
(16:03 +0200)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Mon, 2 Aug 2010 08:01:47 +0000
(09:01 +0100)
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@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtd_blkdevs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/mtd_blkdevs.c
b/drivers/mtd/mtd_blkdevs.c
index 03e19c1965cc031885e8a288ea092b10f3fea353..a6bb5863e8f38fbe6856e782523b49410ede777a 100644
(file)
--- 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;
}