From patchwork Wed Sep 13 07:32:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950601 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 8829D6038F for ; Wed, 13 Sep 2017 07:38:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7951B28DB3 for ; Wed, 13 Sep 2017 07:38:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DF7F28FCD; Wed, 13 Sep 2017 07:38: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.5 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB,T_DKIM_INVALID 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 33F8928DB3 for ; Wed, 13 Sep 2017 07:38:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751629AbdIMHc3 (ORCPT ); Wed, 13 Sep 2017 03:32:29 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36578 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751626AbdIMHc2 (ORCPT ); Wed, 13 Sep 2017 03:32:28 -0400 Received: by mail-pg0-f67.google.com with SMTP id d8so7290948pgt.3; Wed, 13 Sep 2017 00:32:27 -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; bh=x35/7kXceZROpSzZjG4p0z9cA1llo4300abm2zofPIg=; b=VuhddrpSseLsSqZ5vj8rHEkpumZl9A5Mv5sV3vKd74MHZqf7kX6/6RceHbqJp3QN0U xSsy2HMs1gARbdpCUR5KrklJVYAvBrgTJaCAdenY835n6T6SIQA3Bpqf1uVzlbxt6r1j /SKHw30iXy3EstFDEw8+vMfGU5k1YMwuPbsVeRLNeg3TJTYItpzCp4ktwoGdBfJrzxGn bFWH4vQNnRmdZtsJyJIoEliOZ6Z2bZxzodQqz9GiwkxiJ1qNgmNQlTRfd88Lgbzpt8cA M7O+6qXqEHaN88xixvDbZ//dxaC1IpL0Gr9yQ03OLhWnDRxQSOV83D8uFi71o6lJtadf VXBg== 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; bh=x35/7kXceZROpSzZjG4p0z9cA1llo4300abm2zofPIg=; b=imm/uo1SGjNv8NFgHxicMA18qbutmey+5EIzd1X58+LVA++PZG7t8EtTi8AVquARmb 7kGBG3CCpcrwU2NN/ur0eAxRJwZUP1AyA+anVFb5FaIS+oaq2udAWOdrhzZLrbwhyn94 8SLFxCjGKWjYyMZBxPkYPPSl/nMazjU2rbfv7zvIP8g/Hrfq4iB9SkP4qHvIm+9aDBeo dC1lr3HNvVQ/hmVKpNo/z0fDgzjkXCZNbeTaBQS7H+Ii260/ZEWxw+/t+rtHVt3VzJXs 5G20tpYpZTtbqPDKly+b2dl+SDGvJpBQ8rq+M3DnytlM4K7ic+cDU5f+1HR/FTCcMDNt pBMg== X-Gm-Message-State: AHPjjUj80NI6AflpJaideDmhs0KT8KZM8ZUfIYx+X9h5s2X2wETypiQw lZFjB1r9yyWDxL9Sx7ZhQg== X-Google-Smtp-Source: ADKCNb7aFnU6qBo332jVtEj5+2ITfEERy6n/dwfv6IJZr1Q4T+gGlItWWmXr3hI93vlLRsfnnRif/Q== X-Received: by 10.84.132.111 with SMTP id 102mr19456598ple.348.1505287947312; Wed, 13 Sep 2017 00:32:27 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm17997328pfg.146.2017.09.13.00.32.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:32:26 -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 01/10] arch:powerpc: return -ENOMEM on failed allocation Date: Wed, 13 Sep 2017 13:02:10 +0530 Message-Id: <1505287939-14106-1-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Allen Pais --- arch/powerpc/platforms/cell/spider-pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/cell/spider-pci.c b/arch/powerpc/platforms/cell/spider-pci.c index d1e61e2..82aa3f7 100644 --- a/arch/powerpc/platforms/cell/spider-pci.c +++ b/arch/powerpc/platforms/cell/spider-pci.c @@ -106,7 +106,7 @@ static int __init spiderpci_pci_setup_chip(struct pci_controller *phb, dummy_page_va = kmalloc(PAGE_SIZE, GFP_KERNEL); if (!dummy_page_va) { pr_err("SPIDERPCI-IOWA:Alloc dummy_page_va failed.\n"); - return -1; + return -ENOMEM; } dummy_page_da = dma_map_single(phb->parent, dummy_page_va, @@ -137,7 +137,7 @@ int __init spiderpci_iowa_init(struct iowa_bus *bus, void *data) if (!priv) { pr_err("SPIDERPCI-IOWA:" "Can't allocate struct spiderpci_iowa_private"); - return -1; + return -ENOMEM; } if (of_address_to_resource(np, 0, &r)) {