Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201814
b: refs/heads/master
c: 095751a
h: refs/heads/master
v: v3
  • Loading branch information
Matthieu CASTET authored and Artem Bityutskiy committed Jun 11, 2010
1 parent 0ba9bd7 commit 5b4b0c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a49af2ca019dcb4614c32f832bbcb814b61409c
refs/heads/master: 095751a6e0838a712393a74eb0b7b6559dbdbe81
2 changes: 2 additions & 0 deletions trunk/drivers/mtd/ubi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <linux/slab.h>
#include <linux/crc32.h>
#include <linux/math64.h>
#include <linux/random.h>
#include "ubi.h"

#ifdef CONFIG_MTD_UBI_DEBUG_PARANOID
Expand Down Expand Up @@ -956,6 +957,7 @@ static int check_what_we_have(const struct ubi_device *ubi,
*/
si->is_empty = 1;
ubi_msg("empty MTD device detected");
get_random_bytes(&ubi->image_seq, sizeof(ubi->image_seq));
} else {
ubi_err("MTD device possibly contains non-UBI data, "
"refusing it");
Expand Down

0 comments on commit 5b4b0c4

Please sign in to comment.