Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108534
b: refs/heads/master
c: 16dfd80
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Hunter authored and Artem Bityutskiy committed Aug 13, 2008
1 parent 9ac5872 commit 4b9beff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 1e0f358e29cc91c8eb09e10cbf1f6bb58a62c795
refs/heads/master: 16dfd804b44ef7156d1c201f100bd0d9dc6b7c4b
7 changes: 4 additions & 3 deletions trunk/fs/ubifs/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -2208,16 +2208,17 @@ int dbg_leb_read(struct ubi_volume_desc *desc, int lnum, char *buf, int offset,
int dbg_leb_write(struct ubi_volume_desc *desc, int lnum, const void *buf,
int offset, int len, int dtype)
{
int err;
int err, failing;

if (in_failure_mode(desc))
return -EIO;
if (do_fail(desc, lnum, 1))
failing = do_fail(desc, lnum, 1);
if (failing)
cut_data(buf, len);
err = ubi_leb_write(desc, lnum, buf, offset, len, dtype);
if (err)
return err;
if (in_failure_mode(desc))
if (failing)
return -EIO;
return 0;
}
Expand Down

0 comments on commit 4b9beff

Please sign in to comment.