projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4335c10
)
mtd: change positive error return into negative
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 29 Jan 2010 09:35:04 +0000
(10:35 +0100)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Thu, 25 Feb 2010 11:35:28 +0000
(11:35 +0000)
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdchar.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdchar.c
b/drivers/mtd/mtdchar.c
index 0a85085fe69792ba0813b50fb48f83b48be072e6..bce0a07cbac971379b1c4c8a5e7a294f8b00aacf 100644
(file)
--- a/
drivers/mtd/mtdchar.c
+++ b/
drivers/mtd/mtdchar.c
@@
-373,7
+373,7
@@
static int mtd_do_writeoob(struct file *file, struct mtd_info *mtd,
if (!mtd->write_oob)
ret = -EOPNOTSUPP;
else
- ret = access_ok(VERIFY_READ, ptr, length) ? 0 : EFAULT;
+ ret = access_ok(VERIFY_READ, ptr, length) ? 0 :
-
EFAULT;
if (ret)
return ret;