Browse Source

Merge tag 'upstream-4.0-rc5' of git://git.infradead.org/linux-ubifs

Pull UBI fix from Artem Bityutskiy:
 "This fixes a bug introduced during the v4.0 merge window where we
  forgot to put braces where they should be"

* tag 'upstream-4.0-rc5' of git://git.infradead.org/linux-ubifs:
  UBI: fix missing brace control flow
Linus Torvalds 10 years ago
parent
commit
c6ef814509
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/mtd/ubi/eba.c

+ 2 - 1
drivers/mtd/ubi/eba.c

@@ -425,9 +425,10 @@ retry:
 					ubi_warn(ubi, "corrupted VID header at PEB %d, LEB %d:%d",
 					ubi_warn(ubi, "corrupted VID header at PEB %d, LEB %d:%d",
 						 pnum, vol_id, lnum);
 						 pnum, vol_id, lnum);
 					err = -EBADMSG;
 					err = -EBADMSG;
-				} else
+				} else {
 					err = -EINVAL;
 					err = -EINVAL;
 					ubi_ro_mode(ubi);
 					ubi_ro_mode(ubi);
+				}
 			}
 			}
 			goto out_free;
 			goto out_free;
 		} else if (err == UBI_IO_BITFLIPS)
 		} else if (err == UBI_IO_BITFLIPS)