From patchwork Wed Sep 13 07:32:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950519 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 316E56038F for ; Wed, 13 Sep 2017 07:34:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23148283B0 for ; Wed, 13 Sep 2017 07:34:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 17DF72872C; Wed, 13 Sep 2017 07:34:26 +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 D7983283B0 for ; Wed, 13 Sep 2017 07:34:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752034AbdIMHdO (ORCPT ); Wed, 13 Sep 2017 03:33:14 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:33257 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949AbdIMHdH (ORCPT ); Wed, 13 Sep 2017 03:33:07 -0400 Received: by mail-pg0-f67.google.com with SMTP id i130so5291829pgc.0; Wed, 13 Sep 2017 00:33:07 -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=IfqPesCO8qVPakM/TyRmdddIe/pgitgtw+VvBjcFAQQ=; b=psFOX5PqoEcrlT2d/OyK1n8TJzZpon9SI2OfsiR8hD+XudL8bUhDExDdWxvP0NpskA Jd/65lMrdW4wdmstuQceDAGi/LzivoUhfQjoxoZEk9w0BQ3Ss7v3wEgViYWlEAJmFZ3e 9ppLaE7c8TRF98a0fdyJdFf0SVVGJqvbwLG8qg4Ux/XlBzvwLUlo/eA1iRT4xDVd5Htp p+FsTOT5wZZjPSkLt5mPFDGDMOB/S01LnHT7y2nXKc/PzMmgaBMWALUhB7HV37YDC2lu Zg9Vf7DWYljWqFAA26ihtZ1wmOq14FxH9mbmAHMopKOZ0Oh2aQX0tRiTPTokv40PAyeF ayHw== 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=IfqPesCO8qVPakM/TyRmdddIe/pgitgtw+VvBjcFAQQ=; b=LxVslUvfV9Z5G5H0r3prnNCbLS4Yx3iJ/ALjrjVMGeOojQ01vQneiQCoMUzWJ9P/2Q MNWIkp7pNqqGXBwz3lb0P5JiY6KthTsd2SBUWiySVfpDCpke7xoxmR54qnhmiPftPOx0 W/Yilm8VfILb9hWVmYHUplHCBHPqoPSRmkxFsUCBhhuVs9OUD8l7cy1pHM6YNUPT0Et9 wLJpOo91zX3xSKFzAhQ3RQHs6Q4QAapE+uUC507l3Ygp/vlOnEa9F9nRAjxJlSPo2IrX 5Xz5MiKG/+EHNGqh7M9RSRsI1YpVRjOtzgbLGoc+ZPwXW03vZ0MH9c/v7VPZ+6lPluBB 9L7A== X-Gm-Message-State: AHPjjUhHuuCnI+75hjzx2oAjhQ4qak+R0am61qWi7j5jF63XAQB8nqpq vuM1f8u0GBZ+iWl+/5NLYw== X-Google-Smtp-Source: AOwi7QBMXjXmcbsHMWICHQdZWU40ik7W1Jw3wHIzMaD38JNzBV8PUitnULKBW8zgjCPogI3QyElDng== X-Received: by 10.84.176.65 with SMTP id u59mr5286830plb.278.1505287986733; Wed, 13 Sep 2017 00:33:06 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm17997328pfg.146.2017.09.13.00.33.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:33:05 -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 09/10] driver:video: return -ENOMEM on allocation failure. Date: Wed, 13 Sep 2017 13:02:18 +0530 Message-Id: <1505287939-14106-9-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-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Allen Pais --- drivers/video/fbdev/matrox/matroxfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/matrox/matroxfb_base.c b/drivers/video/fbdev/matrox/matroxfb_base.c index f6a0b9a..5cd238d 100644 --- a/drivers/video/fbdev/matrox/matroxfb_base.c +++ b/drivers/video/fbdev/matrox/matroxfb_base.c @@ -2058,7 +2058,7 @@ static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm minfo = kzalloc(sizeof(*minfo), GFP_KERNEL); if (!minfo) - return -1; + return -ENOMEM; minfo->pcidev = pdev; minfo->dead = 0;