Received: by 10.223.164.202 with SMTP id h10csp1381979wrb; Fri, 17 Nov 2017 20:42:27 -0800 (PST) X-Google-Smtp-Source: AGs4zMZH2t66bJ2Zlfk2Md0JhxRMZ+RriOmVhzscyeyQOHk4G5EVw3+osAlxn36JI6W5BMP+13+V X-Received: by 10.98.87.138 with SMTP id i10mr4303192pfj.185.1510980147407; Fri, 17 Nov 2017 20:42:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510980147; cv=none; d=google.com; s=arc-20160816; b=duomthmulANj0lZ0kHcONpqKLiPa0gvIAGHH41IZNld7ZCME5ozjZedAlOnq6o3JZT biMkM8F/0k+dV2cGx///trSYVIAMNr5Z6TbgmOcsvReIHosaiVAIruLljlXHrAcm8N1U Nvaya8F4y8QrdfYvbI4SoUKEjd5s7RZeXbvGwvUBNialMmuIfuCY2nyxKgtFjc29jg/m 9lOIpYNkj/Q2ZXMW7mo2csgwlwbAJ9xFixjcuJ0k4PiLspzHs8ULFcdiNlmN/SdLuFfe 74dhFO5rOn2yaMKryOrVM0Tp2b3IqQupswYyF7zIXio6mBZPqq1IQSEgi4V65VlUz9Qp amQA== 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=6tTR2AJBoqeGII5Df1E59emW3s/2hVWG6vvQHzyi51Y=; b=M2eIxQYGqaUfi9h3FHvAIhpTY3q5v+yxp4JgDF4QCGixH3gz/XMxwgSexCyOnktS9K DVeIkXCaKgcqY597425/6L+j+qebv20nS+uCtxmZaubp5y6FzsboJ6nHbym9jPVc0eZF opaXoKRaxV5LJboT5p3l4DsTN9olXJyHwbQ7GzLICuXS2cKX9vOnmsjD1zgDgyeA7dy9 5ZMf05HdFpGoS6jEt1520tPQWV09GXPRZwfRv2RaV6VtCzjKmQgoMZzDyDEDFvkhokwG sCO8Iisvs8zdP5a0x/aBUB8pgjbotMkmCLrF7QGI9jDxm5Z6R1hpmf/U1iuUErfqThIb O6Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kiDXVWFt; 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 x23si390930pln.821.2017.11.17.20.42.14; Fri, 17 Nov 2017 20:42:27 -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=kiDXVWFt; 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 S935510AbdKQTeh (ORCPT + 93 others); Fri, 17 Nov 2017 14:34:37 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:45272 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934379AbdKQTdz (ORCPT ); Fri, 17 Nov 2017 14:33:55 -0500 Received: by mail-pg0-f67.google.com with SMTP id 207so2634022pgc.12 for ; Fri, 17 Nov 2017 11:33:55 -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=6tTR2AJBoqeGII5Df1E59emW3s/2hVWG6vvQHzyi51Y=; b=kiDXVWFth+18erpna2ZtzWoUPUKsvpvJlmSH1gqvIKT1PvXV6JXF8lFGdzibsQzuN6 FFVaUcszOcwRoveAwK7W6jtF1t92LB6bjy6se7jIrffLocGCvpMrqYNdERHuK5IDMCtC dM6onj60MrgR0FX5LTisCqrLupya96aDAGC71ylxrxQ7QbTA5iqO3trshyCUQntnIlNh SgNQjOKGwyO+N2aampdOGKzft3lhP3jA5diwzNjWOzpHup14N9KxjuTd8uptjwqHNDzm JjE3VCTET+Na/ubSUQfL+25iJrp9lfRJPTnh6gbGTkcu3I/rchYSWkdrgnNjOD1VQoNI Hnug== 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=6tTR2AJBoqeGII5Df1E59emW3s/2hVWG6vvQHzyi51Y=; b=Y4nmVBGadq4i/dQ5m6l015eyAgo5Z8HsjFQjt0+rcP9IePP4HSV9aDki/NQweeAMwv th2OSo5LoKKQiks68tYxf5eDOtWPqa+3n3atY148e/k2Wte4r2spMJA3z12RV8qC8Fg3 4FW1i1kwPZmedpF8hJ1uxltBFzTKlI5L1XDOnr3bn24jFJXZY07muTlo0bU/rhlcrkST 1NlcacBUTungoajkvGmA2zCNom11AXj+0oe7aNCSRgOnQp0gk1xvyAgIM7VEF4oEIAgQ 58do4rTuQFKDyXpY4spICUbvcx16wyrrbap+uoc7ZeYi/2Rcdfyk+DcKQ7NQRzgU7oCy 1Ebw== X-Gm-Message-State: AJaThX4jCrGB4DJkp6TWEIt5s8PxJu2AI545TlbdrbE1AvEG48bqe3xf A4cYW0LQim/aZvUJX6fV1z8= X-Received: by 10.84.138.193 with SMTP id 59mr6318663plp.446.1510947234952; Fri, 17 Nov 2017 11:33:54 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id u77sm9066799pfd.168.2017.11.17.11.33.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Nov 2017 11:33:54 -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 5/5] ASoC: intel: mfld: Handle return value of platform_get_irq Date: Sat, 18 Nov 2017 01:03:28 +0530 Message-Id: <1510947208-17134-6-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/boards/mfld_machine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/intel/boards/mfld_machine.c b/sound/soc/intel/boards/mfld_machine.c index 6f44acf..77b3162 100644 --- a/sound/soc/intel/boards/mfld_machine.c +++ b/sound/soc/intel/boards/mfld_machine.c @@ -372,6 +372,8 @@ static int snd_mfld_mc_probe(struct platform_device *pdev) /* retrive the irq number */ irq = platform_get_irq(pdev, 0); + if (irq < 0) + return irq; /* audio interrupt base of SRAM location where * interrupts are stored by System FW */ -- 2.7.4 From 1584466746663283064@xxx Sun Nov 19 04:20:41 +0000 2017 X-GM-THRID: 1584466746663283064 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread