diff --git a/[refs] b/[refs] index 363534975e93..0cd901dd2f8d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1a49af2ca019dcb4614c32f832bbcb814b61409c +refs/heads/master: 095751a6e0838a712393a74eb0b7b6559dbdbe81 diff --git a/trunk/drivers/mtd/ubi/scan.c b/trunk/drivers/mtd/ubi/scan.c index 6b7c0c4baf07..de7b2f1c4113 100644 --- a/trunk/drivers/mtd/ubi/scan.c +++ b/trunk/drivers/mtd/ubi/scan.c @@ -44,6 +44,7 @@ #include #include #include +#include #include "ubi.h" #ifdef CONFIG_MTD_UBI_DEBUG_PARANOID @@ -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");