diff options
| -rw-r--r-- | fs/squashfs/super.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 3550aec2f655..07ceeb8d8f53 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c  | |||
| @@ -275,7 +275,8 @@ allocate_root: | |||
| 275 | 275 | ||
| 276 | err = squashfs_read_inode(root, root_inode); | 276 | err = squashfs_read_inode(root, root_inode); | 
| 277 | if (err) { | 277 | if (err) { | 
| 278 | iget_failed(root); | 278 | make_bad_inode(root); | 
| 279 | iput(root); | ||
| 279 | goto failed_mount; | 280 | goto failed_mount; | 
| 280 | } | 281 | } | 
| 281 | insert_inode_hash(root); | 282 | insert_inode_hash(root); | 
