Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756906Ab0GMPWQ (ORCPT ); Tue, 13 Jul 2010 11:22:16 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:37978 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756753Ab0GMPWO (ORCPT ); Tue, 13 Jul 2010 11:22:14 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=gJqH9IxjNSVm49xtmZg3U2SUUDN2wWvB0m9cefI5+Wzd6hv9+Du6qxssPIg2zrVeG1 9lmvFD8uiDXYaLK5491enssTMyXiJei2yWj3pk3quL3v1DC46wjRjGSJxcYamUHCNQx5 1j1dO1iTjDPNbpCQArXc8yXjSRIEp6FbhGfGA= Date: Tue, 13 Jul 2010 23:15:00 +0800 From: "Wang Sheng-Hui" To: "kernel-janitors" , "linux-ext4" , "linux-kernel" Subject: [PATCH] ext2: return -ENODATA for NULL i_file_acl in ext2_xattr_list Message-ID: <201007132314514372601@gmail.com> X-mailer: Foxmail 6, 15, 201, 22 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 985 Lines: 35 Sorry, I noticed the format is changed by my client in the former patch. Please check this one. Signed-off-by: Wang Sheng-Hui --- fs/ext2/xattr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ext2/xattr.c b/fs/ext2/xattr.c index 7c39157..5ecbbd8 100644 --- a/fs/ext2/xattr.c +++ b/fs/ext2/xattr.c @@ -263,7 +263,7 @@ ext2_xattr_list(struct dentry *dentry, char *buffer, size_t buffer_size) buffer, (long)buffer_size); down_read(&EXT2_I(inode)->xattr_sem); - error = 0; + error = -ENODATA; if (!EXT2_I(inode)->i_file_acl) goto cleanup; ea_idebug(inode, "reading block %d", EXT2_I(inode)->i_file_acl); -- 1.7.1.1 -------------- Wang Sheng-Hui 2010-07-13 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/