From: Theodore Ts'o Subject: Re: [RFC PATCH 5/5] fscrypt: pass up error codes from ->get_context() Date: Tue, 27 Dec 2016 22:26:44 -0500 Message-ID: <20161228032644.hq5wi66y6rqlydka@thunk.org> References: <1480965168-38747-1-git-send-email-ebiggers@google.com> <1480965168-38747-6-git-send-email-ebiggers@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: David Gstir , Richard Weinberger , linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, Jaegeuk Kim , linux-ext4@vger.kernel.org To: Eric Biggers Return-path: Content-Disposition: inline In-Reply-To: <1480965168-38747-6-git-send-email-ebiggers@google.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net List-Id: linux-ext4.vger.kernel.org On Mon, Dec 05, 2016 at 11:12:48AM -0800, Eric Biggers wrote: > It was possible for the ->get_context() operation to fail with a > specific error code, which was then not returned to the caller of > FS_IOC_SET_ENCRYPTION_POLICY or FS_IOC_GET_ENCRYPTION_POLICY. Make sure > to pass through these error codes. Also reorganize the code so that > ->get_context() only needs to be called one time when setting an > encryption policy, and handle contexts of unrecognized sizes more > appropriately. > > Signed-off-by: Eric Biggers Thanks, applied to the fscrypt branch. - Ted ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot