From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751452AbcBLFCS (ORCPT ); Fri, 12 Feb 2016 00:02:18 -0500 Received: from imap.thunk.org ([74.207.234.97]:48776 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750707AbcBLFCR (ORCPT ); Fri, 12 Feb 2016 00:02:17 -0500 Date: Fri, 12 Feb 2016 00:02:14 -0500 From: "Theodore Ts'o" To: Anton Protopopov Cc: Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ext4: ioctl: fix erroneous return value Message-ID: <20160212050214.GD11298@thunk.org> Mail-Followup-To: Theodore Ts'o , Anton Protopopov , Andreas Dilger , linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org References: <1455206338-2869-1-git-send-email-a.s.protopopov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1455206338-2869-1-git-send-email-a.s.protopopov@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 11, 2016 at 10:58:58AM -0500, Anton Protopopov wrote: > The ext4_ioctl_setflags() function which is used in the ioctls > EXT4_IOC_SETFLAGS and EXT4_IOC_FSSETXATTR may return the positive value > EPERM instead of -EPERM in case of error. This bug was introduced by a > recent commit 9b7365fc. Nice catch! Thanks, applied. - Ted