Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487AbcLFK1X (ORCPT ); Tue, 6 Dec 2016 05:27:23 -0500 Received: from mail-oi0-f67.google.com ([209.85.218.67]:34590 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbcLFK1U (ORCPT ); Tue, 6 Dec 2016 05:27:20 -0500 MIME-Version: 1.0 X-Originating-IP: [217.173.44.24] In-Reply-To: <94af12abde2c71fe42b4ba340cf93faaed4909e7.1479481211.git.geliangtang@gmail.com> References: <94af12abde2c71fe42b4ba340cf93faaed4909e7.1479481211.git.geliangtang@gmail.com> From: Miklos Szeredi Date: Tue, 6 Dec 2016 11:27:19 +0100 Message-ID: Subject: Re: [PATCH] ovl: fix return value of ovl_fill_super To: Geliang Tang Cc: "linux-unionfs@vger.kernel.org" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 312 Lines: 8 On Fri, Nov 18, 2016 at 4:02 PM, Geliang Tang wrote: > If kcalloc() failed, the return value of ovl_fill_super() is -EINVAL, > not -ENOMEM. So this patch sets this value to -ENOMEM before calling > kcalloc(), and sets it back to -EINVAL after calling kcalloc(). Thanks, applied. Miklos