1. 13 Dec, 2014 2 commits
    • Brian Norris's avatar
      mtd: tests: abort torturetest on erase errors · 68f29815
      Brian Norris authored
      The torture test should quit once it actually induces an error in the
      flash. This step was accidentally removed during refactoring.
      
      Without this fix, the torturetest just continues infinitely, or until
      the maximum cycle count is reached. e.g.:
      
         ...
         [ 7619.218171] mtd_test: error -5 while erasing EB 100
         [ 7619.297981] mtd_test: error -5 while erasing EB 100
         [ 7619.377953] mtd_test: error -5 while erasing EB 100
         [ 7619.457998] mtd_test: error -5 while erasing EB 100
         [ 7619.537990] mtd_test: error -5 while erasing EB 100
         ...
      
      Fixes: 6cf78358 ("mtd: mtd_torturetest: use mtd_test helpers")
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      Cc: Akinobu Mita <akinobu.mita@gmail.com>
      Cc: <stable@vger.kernel.org>
      68f29815
    • Ard Biesheuvel's avatar
      mtd: physmap_of: fix potential NULL dereference · 92b633a8
      Ard Biesheuvel authored
      On device remove, when testing the cmtd field of an of_flash
      struct to decide whether it is a concatenated device or not,
      we get a false positive on cmtd == NULL, and dereference it
      subsequently. This may occur if of_flash_remove() is called
      from the cleanup path of of_flash_probe().
      
      Instead, test for NULL first, and only then perform the test
      for a concatenated device.
      Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      92b633a8
  2. 01 Dec, 2014 8 commits
  3. 29 Nov, 2014 2 commits
  4. 26 Nov, 2014 9 commits
  5. 20 Nov, 2014 4 commits
  6. 05 Nov, 2014 15 commits