Skip to contentSkip to conversation

squashfs: return correct error value

PATCH New Sanidhya Kashyap 1 participant 1 message Mar 25, 2015 SquashFS file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 squashfs: return correct error value

In the squashfs_symlink_readpage(), the return value should be -EIO instead of 0 when the code fails in obtaining the information about the symlink metadata.

---
 fs/squashfs/symlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/squashfs/symlink.c +1 -1
index 12806df..791ab36 100644
@@ -109,7 +109,7 @@ static int squashfs_symlink_readpage(struct file *file, struct page *page)
 error_out:
 	SetPageError(page);
 	unlock_page(page);
-	return 0;
+	return -EIO;
 }
 
 
Signature · 1 line
2.1.0