Message ID | 20180620110921.2s4krw4zjbnfniq5@kili.mountain (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C4F0260383 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 20 Jun 2018 11:09:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B21A328D08 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 20 Jun 2018 11:09:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2C2228D1A; Wed, 20 Jun 2018 11:09:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12E1B28D08 for <patchwork-linux-mm@patchwork.kernel.org>; Wed, 20 Jun 2018 11:09:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D7A9F6B0003; Wed, 20 Jun 2018 07:09:35 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D59E56B0006; Wed, 20 Jun 2018 07:09:35 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C1A0D6B0007; Wed, 20 Jun 2018 07:09:35 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-it0-f70.google.com (mail-it0-f70.google.com [209.85.214.70]) by kanga.kvack.org (Postfix) with ESMTP id 937EB6B0003 for <linux-mm@kvack.org>; Wed, 20 Jun 2018 07:09:35 -0400 (EDT) Received: by mail-it0-f70.google.com with SMTP id h26-v6so2623148itj.6 for <linux-mm@kvack.org>; Wed, 20 Jun 2018 04:09:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:date:from:to:cc:subject :message-id:mime-version:content-disposition:user-agent; bh=ZiDYkG9yvbCu2VzEStzv5oMq4p4KyPelACWWwkGPLgE=; b=Qufuv18o4Sim2IC4vcHsffL8Fr43Y3CA3CQdyyhBWiHqXw9/yW37SNLAm9sFhUzWKO 4bZU/2TuG4OzKqO1gOliLuzgFAs7pn66Byu5XBkjF7B1g/jc1SD3tcXKJinU9wQggmdY nfvK4BznHXJgxaCOIJo8vHwDlx8OHYy0KZXHkwdZ6pitjwXISGM0V7MLVhSQlqhKVGD1 nuaeoOAibdM6PdW5t4rZvB6hNxvSWkUBtLzqzr/tSoLO7nZCJM8IFN4BW6pmWJF32hKe G5uIJznrCm2YDBm4RAm+hxfUHJerpKGTPjUj3yfuh2ra0cD1UsNLZGU3jbudXijgniFh Ai2Q== X-Gm-Message-State: APt69E0duhBuIn5GzYtTXX5QRvCWv5654mBE06v2IX1bXBg1JBc9vAmH J7N3P/FiNuypuJhJKLnpwE/IVys44CIMeFGvaigx8fccj9hkX8DaIxKu/L8001pueMCONCsOuan L58lJ2vsd4retIpw+nJ8RE14BQowqrNaDGpG8KlAJfVvuGHX62bM852MmtlEX57wT4Q== X-Received: by 2002:a5e:c811:: with SMTP id y17-v6mr16234822iol.29.1529492975338; Wed, 20 Jun 2018 04:09:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLwY/wFMpukIcO59nHXoGVeL+bUaZgaEn1GRG6XNXB+Qt2Zo4GuyvoKI1aJjEH6O7u3LC2K X-Received: by 2002:a5e:c811:: with SMTP id y17-v6mr16234786iol.29.1529492974647; Wed, 20 Jun 2018 04:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529492974; cv=none; d=google.com; s=arc-20160816; b=RArf52Yw5chp7v6edda76lRMGfWxAXO1ajV9XlDJH1dCTkkt1r2zlGml16WW6IRv/3 A0n2xZQ1YFeUuBsUxTWzZvdc59WzFWS8Gux9B6VI065Fkj5xEwUHh4f3u0APjao/PYtR lGQrj7l/nbGP3gQA5tTdcA1Se6IB7W1BVdkBZew8m/7YFloLyAjR4zE1B5GRotAJxJju xgGPQ9iZmvb6saNMGFNF1pJ0TYDIJbVpfjiKiCiAxrqv8mndvX+4BQjzar2XZ44GL5ib s3swmSa539HkfItLUHJ87m3TEPlUCXrD5yXUKAF5yGphLI2pGvc1n0nx3V/CTAMravyO PNHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:content-disposition:mime-version:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ZiDYkG9yvbCu2VzEStzv5oMq4p4KyPelACWWwkGPLgE=; b=Dt+NuHAuvzE4hm6nGHarE86H7up6KDDAKYlZOzXb3oq6JWPODjEYUO4ynQLyLlOQU7 K5PEMA3JkaO4hDkh2Emiaw7prMQ7tga8iNEqDwt7x5HJaNILsCrIQZPuNLlSqbXx2ATa l3vzghTiAJSo05juDDwUHbQWkLnJ4tlNRv48q51ejkEyxVuZ3f460tzq78DebaWMUxCp 0Lk7JT8r8HrGcSYdKJsWcPo7KG4b1z0ujQmwTFUa9n4vRFzjOhGtUdFDDfiXDmjJVV/q FP9qKQBTzhoLOaAEm1yuY/NYsBkv04295Ky/gLOV2/g7iRFm0H7fFHnzC6LQtx8HhnLB Y7tQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=hw3pAg0C; spf=pass (google.com: domain of dan.carpenter@oracle.com designates 141.146.126.78 as permitted sender) smtp.mailfrom=dan.carpenter@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from aserp2120.oracle.com (aserp2120.oracle.com. [141.146.126.78]) by mx.google.com with ESMTPS id n22-v6si1540902ioh.147.2018.06.20.04.09.34 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 04:09:34 -0700 (PDT) Received-SPF: pass (google.com: domain of dan.carpenter@oracle.com designates 141.146.126.78 as permitted sender) client-ip=141.146.126.78; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=hw3pAg0C; spf=pass (google.com: domain of dan.carpenter@oracle.com designates 141.146.126.78 as permitted sender) smtp.mailfrom=dan.carpenter@oracle.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w5KB9MnK016417; Wed, 20 Jun 2018 11:09:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : mime-version : content-type; s=corp-2017-10-26; bh=ZiDYkG9yvbCu2VzEStzv5oMq4p4KyPelACWWwkGPLgE=; b=hw3pAg0CguowyuetO7QZh51zFuy0Str8fvh5v7R/MazPhL6D4YdxS8KvC7+DrtaPZstP ojrWJOlT8LOpOG8BPeM6Lti8nCeUAvS251o0zjm0qHCUVPib0T9RMD9fdQzbbarGqfv7 8xaJCB8uulnhT+dqy8iOEiwbzIXBWPv7AIP+IrWnB2ufBlE7mL4pE/+mzdPj2eRriuwk ErBpP4paa96pGDk83EJQfQVWvYlCAh/GBqyootvjUmNsFfyeAeNQ6kPPX+AOld5Zt7Zn H81UhHMqULOrZTRL3uzRhVlk+nrCA6lJugOgi5ZfrRu5LbkRrNk6IQG6Cn4TAd9ISlaf GQ== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp2120.oracle.com with ESMTP id 2jmtgwv006-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Jun 2018 11:09:33 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w5KB9Xhd016208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 20 Jun 2018 11:09:33 GMT Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w5KB9XvG009519; Wed, 20 Jun 2018 11:09:33 GMT Received: from kili.mountain (/197.157.34.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 20 Jun 2018 04:09:32 -0700 Date: Wed, 20 Jun 2018 14:09:21 +0300 From: Dan Carpenter <dan.carpenter@oracle.com> To: Mike Kravetz <mike.kravetz@oracle.com>, David Howells <dhowells@redhat.com> Cc: linux-mm@kvack.org, kernel-janitors@vger.kernel.org Subject: [PATCH] hugetlbfs: Fix an error code in init_hugetlbfs_fs() Message-ID: <20180620110921.2s4krw4zjbnfniq5@kili.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mailer: git-send-email haha only kidding User-Agent: NeoMutt/20170113 (1.7.2) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8929 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=844 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806200128 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
On 06/20/2018 04:09 AM, Dan Carpenter wrote: > We accidentally deleted the error code assignment. > > Fixes: 9b82d88c136c ("hugetlbfs: Convert to fs_context") > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Thanks for catching this, Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Dan Carpenter <dan.carpenter@oracle.com> wrote:
> We accidentally deleted the error code assignment.
Thanks. I'll fold it into the original patch.
David
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 9a5c9fcf54f5..91fadca3c8e6 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c @@ -1482,8 +1482,10 @@ static int __init init_hugetlbfs_fs(void) i = 0; for_each_hstate(h) { mnt = mount_one_hugetlbfs(h); - if (IS_ERR(mnt) && i == 0) + if (IS_ERR(mnt) && i == 0) { + error = PTR_ERR(mnt); goto out; + } hugetlbfs_vfsmount[i] = mnt; i++; }
We accidentally deleted the error code assignment. Fixes: 9b82d88c136c ("hugetlbfs: Convert to fs_context") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>