Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68445
b: refs/heads/master
c: 7eafaed
h: refs/heads/master
i:
  68443: 0cba61a
v: v3
  • Loading branch information
Joakim Tjernlund authored and David Woodhouse committed Jun 28, 2007
1 parent 1f61e35 commit 21009d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd5324909e410a3202c1b01bd507c2dfba58fca5
refs/heads/master: 7eafaed55f4b8599cfe55449a6ed88d3693954de
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ static int mtd_close(struct inode *inode, struct file *file)

DEBUG(MTD_DEBUG_LEVEL0, "MTD_close\n");

if (mtd->sync)
/* Only sync if opened RW */
if ((file->f_mode & 2) && mtd->sync)
mtd->sync(mtd);

put_mtd_device(mtd);
Expand Down

0 comments on commit 21009d4

Please sign in to comment.