Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106059
b: refs/heads/master
c: a0fd1ef
h: refs/heads/master
i:
  106057: 7f69c0b
  106055: 1386690
v: v3
  • Loading branch information
Kyungmin Park authored and Artem Bityutskiy committed Jul 24, 2008
1 parent 16be116 commit a2cb213
Show file tree
Hide file tree
Showing 2 changed files with 4 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: beeea636030622f6de67d15c61f5b311a03d188c
refs/heads/master: a0fd1efd488092951f310fdb777b8a540cf84dcb
6 changes: 3 additions & 3 deletions trunk/drivers/mtd/ubi/upd.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
int err;

if (vol->vol_type == UBI_DYNAMIC_VOLUME) {
len = ALIGN(len, ubi->min_io_size);
memset(buf + len, 0xFF, len - len);
int l = ALIGN(len, ubi->min_io_size);

len = ubi_calc_data_len(ubi, buf, len);
memset(buf + len, 0xFF, l - len);
len = ubi_calc_data_len(ubi, buf, l);
if (len == 0) {
dbg_msg("all %d bytes contain 0xFF - skip", len);
return 0;
Expand Down

0 comments on commit a2cb213

Please sign in to comment.