Merge branch 'work.namei' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
[linux-2.6-microblaze.git] / fs / squashfs / block.c
index b9e87eb..855f0e8 100644 (file)
@@ -226,8 +226,11 @@ out_free_bio:
        bio_free_pages(bio);
        bio_put(bio);
 out:
-       if (res < 0)
+       if (res < 0) {
                ERROR("Failed to read block 0x%llx: %d\n", index, res);
+               if (msblk->panic_on_errors)
+                       panic("squashfs read failed");
+       }
 
        return res;
 }