From patchwork Wed Sep 13 07:32:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950517 Return-Path: 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 44EBB6038F for ; Wed, 13 Sep 2017 07:34:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35630283B0 for ; Wed, 13 Sep 2017 07:34:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2A2AF2872C; Wed, 13 Sep 2017 07:34:21 +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=-1.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_SPAM,RCVD_IN_SORBS_WEB autolearn=no version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB134283B0 for ; Wed, 13 Sep 2017 07:34:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbdIMHdP (ORCPT ); Wed, 13 Sep 2017 03:33:15 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:37031 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752015AbdIMHdM (ORCPT ); Wed, 13 Sep 2017 03:33:12 -0400 Received: by mail-pf0-f196.google.com with SMTP id e69so5417187pfg.4; Wed, 13 Sep 2017 00:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XRb6/ba1LAnLadYv6abJS59CT+gj719GBL+eZvNZ7rI=; b=MzryjjFB2CS2nz4V6bFdpOIMuDLgAe8i7lLMkyPSJVtagTlo+IAi8smFg3bM9eLBl9 SlMMUPLF8elNwidl4kw8OmSsIa9rPduqAQozlR/gOIMxuPF0BkEVQIKpSz/jDGQpoA21 YiILGPBvIey0rRQ5oOYr7wshTqoCXfUpm17qy6PmYWf0LfrnBIbUc2975RGGHuU3qKoB hbFs0s6TIiTLvOb4LrQoPiAxxbqhVWFrXt9Z2yE7y5CWuMoZn7/Rv2RrwGm3jd123pEG a548W0m0n+5AY1KbkFQIvBfp48oUu5dpRptZ6AOVT2HazVr0TPL+h6VkHjEkZmsEDcyq 5UPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XRb6/ba1LAnLadYv6abJS59CT+gj719GBL+eZvNZ7rI=; b=lQ7YNvtkjqyV4maZ2A0PkpSWAOERzlGWLs1DYpwTZdoYKjSKdkHed76CgS4LNdiLCU tXPlraUndRkFvc/lT5RqRKAR3zoggYf2dLZ/QLOcjw6xh92qfMr1x1IlmY++2DpZJF5f 57OQ1zG3FCztq8M1dIyTg4GQceO46QgUx9UZtXYCEjZ694OijXegq6hL0jc9EnTZHgBA 3Y7us1hBupVi7vjbswA+zCurWj68VmqUpeb0qBdVSDX99LVSUIVDsUNHM3ROGvR3lf3R quBhRVJZzYCQnmy1KiqiH/fI4Mu+9a98fWxgceRB/EjRWC+gO27EN76e5Vx1dF1fVRv0 ubfA== X-Gm-Message-State: AHPjjUioei74CctwIMaZS+uXxFuepmhHxopN3+DPO2PLKKQ3i43ao6VS cLx6j/7mGXUvuuSbFlAt/w== X-Google-Smtp-Source: ADKCNb4BkUl5YEHuOtQWR5zyBduPxWF6zHsB15njc0Z8KUJDopoBT13CMC4NXaRi6KwYJmDMjWmOew== X-Received: by 10.84.132.111 with SMTP id 102mr19458246ple.348.1505287990996; Wed, 13 Sep 2017 00:33:10 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm17997328pfg.146.2017.09.13.00.33.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:33:09 -0700 (PDT) From: Allen Pais To: linux-kernel@vger.kernel.org Cc: nouveau@lists.freedesktop.org, linux-crypto@vger.kernel.org, dri-devel@lists.freedesktop.org, MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, netdev@vger.kernel.org, megaraidlinux.pdl@broadcom.com, target-devel@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-btrfs@vger.kernel.org, Allen Pais Subject: [PATCH 10/10] fs:btrfs: return -ENOMEM on allocation failure. Date: Wed, 13 Sep 2017 13:02:19 +0530 Message-Id: <1505287939-14106-10-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505287939-14106-1-git-send-email-allen.lkml@gmail.com> References: <1505287939-14106-1-git-send-email-allen.lkml@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Allen Pais --- fs/btrfs/check-integrity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c index 7d5a9b5..efa4c23 100644 --- a/fs/btrfs/check-integrity.c +++ b/fs/btrfs/check-integrity.c @@ -2913,7 +2913,7 @@ int btrfsic_mount(struct btrfs_fs_info *fs_info, state = kvzalloc(sizeof(*state), GFP_KERNEL); if (!state) { pr_info("btrfs check-integrity: allocation failed!\n"); - return -1; + return -ENOMEM; } if (!btrfsic_is_initialized) {