From patchwork Wed Sep 13 07:32:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9950591 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 F3AE56038F for ; Wed, 13 Sep 2017 07:38:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E52A82903B for ; Wed, 13 Sep 2017 07:38:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D992A28C6C; Wed, 13 Sep 2017 07:38:20 +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 8642B28E04 for ; Wed, 13 Sep 2017 07:38:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751873AbdIMHhG (ORCPT ); Wed, 13 Sep 2017 03:37:06 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36414 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772AbdIMHcl (ORCPT ); Wed, 13 Sep 2017 03:32:41 -0400 Received: by mail-pf0-f195.google.com with SMTP id f84so7213734pfj.3; Wed, 13 Sep 2017 00:32:41 -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=iwUpdDwuXNDC0bAWsCApBluqMNyXffabCD3rJhOVk7s=; b=q3l9jm+cGIymSbELQX72MUqBOmC4d4UQHSXMmv31MqPuzbqN6/GADxuk/pPQa7ufpV BycmaZE2kwQmh0QPn+pR6S3dCF6qwVzJR1xOyn8wRJ+SJiL7aN/ZM+XGUoVUGPK9OsoJ nuTFxYp+XASMlJ9lsSJ3+hXNCnbF/r5QMP2JV+fQ+5uv4YX6dx18triutHPTGY7g3R+1 PbhVxtMBTYq1UBqV6ohMUoMVv6h2Q62vxF7Sd8fWvyLsmsjBvYeMIJ2D4vU6syWEXw8J biaEYGsg0vFNr184bnBJAGSddK5K0hxpzdJKIJvOw2ZbUImXYozJyd+GXliTSlrdmVRQ slVA== 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=iwUpdDwuXNDC0bAWsCApBluqMNyXffabCD3rJhOVk7s=; b=FoSMg6Nl15hQ36xwDVp9ithEJfNY+CoxCovdplX4jUlpb2oqmmJRIwRViAKvK9LtUP 30+W2t9HHQJPo3k84MgbCz+FFNS1kwZwTT19LFFjCVpVRqTx9KFrOA6QDZmXPAuyAykT e68OW2F87F24+4elS+tr2xEbewA/8QSYJ3Btr5JiDx/h9P1I6kRpeuznRVhLicbUUHz6 613tOWd4+cow70LjujLuZ3QFN8jUOV96qBR8BPcjBZYN4vNqZuh72a2GcbWUsnOI9NpN TA7iKk9cH6ThOMMdNvAz2jBbG7FNQL+tadCN26we5rwxz+8GzLGyvwD17YPVGoeSDk3X wFjw== X-Gm-Message-State: AHPjjUiJse9EuPJYpMUJ/RGmXdoVShEaEMERDUkhbO+pLvJeaktr0AEt jie69HL1snfL5h/GJd1Fwg== X-Google-Smtp-Source: ADKCNb7IGE98dlY8v6fOUoPYAoqavbBc9b+GSvGRZIhxMW5JLKTwMCKERGHgtSVHkWN/cRDl5AKNqg== X-Received: by 10.84.214.15 with SMTP id h15mr20003503pli.5.1505287960838; Wed, 13 Sep 2017 00:32:40 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id u12sm17997328pfg.146.2017.09.13.00.32.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:32:39 -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 03/10] driver:gpu: return -ENOMEM on allocation failure. Date: Wed, 13 Sep 2017 13:02:12 +0530 Message-Id: <1505287939-14106-3-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 --- drivers/gpu/drm/gma500/mid_bios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/mid_bios.c b/drivers/gpu/drm/gma500/mid_bios.c index d75ecb3..1fa1633 100644 --- a/drivers/gpu/drm/gma500/mid_bios.c +++ b/drivers/gpu/drm/gma500/mid_bios.c @@ -237,7 +237,7 @@ static int mid_get_vbt_data_r10(struct drm_psb_private *dev_priv, u32 addr) gct = kmalloc(sizeof(*gct) * vbt.panel_count, GFP_KERNEL); if (!gct) - return -1; + return -ENOMEM; gct_virtual = ioremap(addr + sizeof(vbt), sizeof(*gct) * vbt.panel_count);