mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] squashfs: return correct error value
@ 2015-03-25  5:49 Sanidhya Kashyap
  0 siblings, 0 replies; only message in thread
From: Sanidhya Kashyap @ 2015-03-25  5:49 UTC (permalink / raw)
  To: phillip, linux-kernel
  Cc: taesoo, changwoo, sanidhya, blee, csong84, Sanidhya Kashyap

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.

Signed-off-by: Sanidhya Kashyap <sanidhya.gatech@gmail.com>
---
 fs/squashfs/symlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/squashfs/symlink.c b/fs/squashfs/symlink.c
index 12806df..791ab36 100644
--- a/fs/squashfs/symlink.c
+++ b/fs/squashfs/symlink.c
@@ -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;
 }
 
 
-- 
2.1.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-25  6:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-25  5:49 [PATCH] squashfs: return correct error value Sanidhya Kashyap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome