Received: by 10.223.164.202 with SMTP id h10csp1407233wrb; Fri, 17 Nov 2017 21:24:54 -0800 (PST) X-Google-Smtp-Source: AGs4zMaziUr8GPS39Mgpiw3F5WE6WJJw6bBfABEHVFnVgwAg9KQPlc4P6a6SqD0TYvFzbV8Rt+DW X-Received: by 10.98.32.21 with SMTP id g21mr4439176pfg.52.1510982693890; Fri, 17 Nov 2017 21:24:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510982693; cv=none; d=google.com; s=arc-20160816; b=rAy4ETCvLXyN03vR9s/mcy4xyUn7X72C7kkRO+tWLD3itKF2232+Tjpwk5It0ViN7Z tPpMQW5slBkOaL8WCSdjitMgqymvdW+ahVqayma9VmE8hcoSXk6q/imSbknEKxUQ7mHH MKm413RyUzvfgt1Gy6hjKoo8TE1YC3lu1n6UA+u6R1nsv9YcMXtkUZ8iVZzzV1HKTT2e SvdTzqfBnB31HFQPYMnXEyyaFQ+y/wgSP2zA+LJ3SPqBn9vlbcmkdrd+HqwKonXFbMaH ZTPRBWkuib1B9+++DGupCtAz4CgnoiIHAL0ka7+n/Sd9O1y4m6qTPiM8uYRLvvmDb84p mpSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=B2YREcXm6OIeWzPWdVSuaV+FErx7cozdK/5SNoyghsQ=; b=gT0Y2Ncp222sSooRNAe356mkOnTzfOBHw+Hts4VtzizNyKNQ9jcsq5vcRxTPP8Zobp vCNe0tyPZmMvkk08CMTgUN0ddUkcwGHQDi9BBUFxLjxoeDcN9fc+Nf+FUcp8El6Mlap2 o0IaJHiudwxRlWmjIYkCO7z6P19UaiyGE0t+JX8g87GDWlrbBbSqe7ymLg3piVrWCwrv ytWiaV9cdbKONhB/ZdwhJYXjtjhHNCUDMVcxarN41wobrg6KRclvikE81d75GHlBa2X/ YHOnJbwHlRP6AhoXb3lemniu3ezt5oUCfEoYjfJbg30aUU24WT9L2rUu+tqu5D4kHZz4 dLmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EJ9WmneW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l70si3858651pge.568.2017.11.17.21.24.15; Fri, 17 Nov 2017 21:24:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EJ9WmneW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030257AbdKQTfJ (ORCPT + 93 others); Fri, 17 Nov 2017 14:35:09 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:45253 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932697AbdKQTdw (ORCPT ); Fri, 17 Nov 2017 14:33:52 -0500 Received: by mail-pf0-f195.google.com with SMTP id 17so2612157pfn.12 for ; Fri, 17 Nov 2017 11:33:52 -0800 (PST) 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=B2YREcXm6OIeWzPWdVSuaV+FErx7cozdK/5SNoyghsQ=; b=EJ9WmneWM4fqT6y90b1orYZ7H8KfqGV8qnwfGICeHgICyPukBRsAizqwRCHOSd8gCC HbgXiCrplShs3AIhzPGk4YRvmcrV6H7aN/NfTXs97f+GnIFlKHAr30EXZRvkWiZwDOmX gJRqm+gj3c32iZ9QhFYc5NGJWbZ9TLOLjUTUUMVmTCLtxChYDd5UqMyvMZStDT5tC7Yk 6ZivERwxUvuNFhfaecvw5F3121584+YCpqYMu6kz87pa5kkzGDX8KsOwDflsEWZdgoUg lxrvaxBYLQsxhtUt79f2yhuB46wSGNKNB4SkIdU54PN8UX+0Gep66x+X7FlyM7SvjUDQ aBUA== 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=B2YREcXm6OIeWzPWdVSuaV+FErx7cozdK/5SNoyghsQ=; b=YhkF16e0E/k/+5tLAdxrXE3mDUtClXuX3Fkqp1eysV/Y9KIYXoxQHWYtqZ3L/iGIBm V3tPmzqzR8Fi7nbzsbXHDAIWHok8Pnol0GCvjRq6H7l/g3uak8Z598nx6gr4/FZILVho au923lVbHeuzaklQ1a17r3R1nkPcMXdNutSUtJcLaw1Th0kPJv8ZKHXLfQMH9zKa5SDw xAnrOCQnclngypGzzlCCfvX7ec+X+3TJr0qAaSAyqvxF+zLG1N0ObPwB3ejNxmG+csOx L8iPiQE6T4tPUMNt274YjsKPut6cnIdERRBtYOXAtfptp4WjcWJSXuxcpj8xyQ/pTisT VfKA== X-Gm-Message-State: AJaThX5l43GMwPP/gSAwkONVvETw06yxaKZs0rhsEjymPfMC1FdbuYi/ UMQuZkxBLyzZVG63C+vyTE4= X-Received: by 10.159.214.147 with SMTP id n19mr3640323plp.1.1510947231953; Fri, 17 Nov 2017 11:33:51 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id u77sm9066799pfd.168.2017.11.17.11.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 11:33:51 -0800 (PST) From: Arvind Yadav To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, matthias.bgg@gmail.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 4/5] ASoC: intel: sst: Handle return value of platform_get_irq Date: Sat, 18 Nov 2017 01:03:27 +0530 Message-Id: <1510947208-17134-5-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510947208-17134-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1510947208-17134-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- sound/soc/intel/atom/sst/sst_acpi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/intel/atom/sst/sst_acpi.c b/sound/soc/intel/atom/sst/sst_acpi.c index 32d6e02..693b970 100644 --- a/sound/soc/intel/atom/sst/sst_acpi.c +++ b/sound/soc/intel/atom/sst/sst_acpi.c @@ -236,6 +236,9 @@ static int sst_platform_get_resources(struct intel_sst_drv *ctx) /* Find the IRQ */ ctx->irq_num = platform_get_irq(pdev, ctx->pdata->res_info->acpi_ipc_irq_index); + if (ctx->irq_num < 0) + return ctx->irq_num; + return 0; } -- 2.7.4 From 1584251312918361689@xxx Thu Nov 16 19:16:27 +0000 2017 X-GM-THRID: 1584112376505130338 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread