From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752504AbbCYGH3 (ORCPT ); Wed, 25 Mar 2015 02:07:29 -0400 Received: from mail-yk0-f193.google.com ([209.85.160.193]:34099 "EHLO mail-yk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751101AbbCYGH0 (ORCPT ); Wed, 25 Mar 2015 02:07:26 -0400 From: Sanidhya Kashyap To: phillip@squashfs.org.uk, linux-kernel@vger.kernel.org Cc: taesoo@gatech.edu, changwoo@gatech.edu, sanidhya@gatech.edu, blee@gatech.edu, csong84@gatech.edu, Sanidhya Kashyap Subject: [PATCH] squashfs: return correct error value Date: Wed, 25 Mar 2015 01:49:09 -0400 Message-Id: <1427262549-4961-1-git-send-email-sanidhya.gatech@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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