Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4750521pxj; Tue, 22 Jun 2021 07:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJzdwOp+pdq3ffpZnqlGfo8LXROE8P8ruwiFw3n11Jmd4qUGPgHnaEVLXVDHRvrpqE/t47 X-Received: by 2002:a17:906:ccc3:: with SMTP id ot3mr4257575ejb.475.1624371387543; Tue, 22 Jun 2021 07:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624371387; cv=none; d=google.com; s=arc-20160816; b=b3VBRtRykt3wD6ZylbZ2oAr87pOhlBN9BuzgyPg2powj2QZkLHNyCgdTEHSF7BKADP osIYfq8mrLWcx8x60lFmp+gNx0UVRoZAuzKCKQ2dtH9FHlmEPiTNBMwYw4dJZ3DIo09A ULQqQ8md2n4mOK2FC4aWQ2hAYy3tiqJXuSSiSPV6HZCGXFV/Q4nhWNZH8207G8UO8zGA daCzX5XN8r8sOGF0u44y0aumESC06MigRdNjX6FI4ZqAMPpwkMgE4cq6CqJ1SNL5Ti6q isF6KBidiGmwYyoYxmYknksSqNSHKQ8y8s0P+VScmupLh9YJ7I9x6k1ZPea3xTqTGxX3 F55w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=qt9ifZERVwphuvdnSSK7DiTxmCTtBvIrdP9GVnQs/Ys=; b=sarfRITa0YKw1aqNRXr8lsEPIB5tZVOd5iP7+Pyjez2zixWQM80CWWzxVhx/IAM/SZ c69BzYt58lnqTcZXajx5eelI+8vzhdEuxtYvrXQApYwwPVQsslvDcqAdyifQCwILMWcv 5BwSxKVkI27y3nIIB1b+261wt2njpHY9l5gLTueCBK+zRu5ZTA2p/Sb1sOYAh5HUNOOW 0ALrfOYHvdkaIuTCu/v48KYXkQRtLJJQcszq9WgR6Yur4eDsZMjDTZP7kzdiZYrHxu7z xRF9M8BrX7XTD2zBnU/M6vWegtPHGzdv0jSyds5VbNlMHmqMgARBemQAfsUzYxysKjDx sCYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IgLurosH; dkim=neutral (no key) header.i=@suse.de header.b=rdjf4bYF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si13619841ejb.624.2021.06.22.07.16.04; Tue, 22 Jun 2021 07:16:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IgLurosH; dkim=neutral (no key) header.i=@suse.de header.b=rdjf4bYF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbhFVOOw (ORCPT + 99 others); Tue, 22 Jun 2021 10:14:52 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:37390 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbhFVOOw (ORCPT ); Tue, 22 Jun 2021 10:14:52 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 75F6721986; Tue, 22 Jun 2021 14:12:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1624371155; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qt9ifZERVwphuvdnSSK7DiTxmCTtBvIrdP9GVnQs/Ys=; b=IgLurosHDvQpAn1MzKrof3G5IQ+plyP5/OhgUd8L8c6qGYS5tVNrwfOxB1qAhkjwKyDl80 bxCrPyiO/Plx7h+jnTxjNn+Eol2d5mSvRoordggUiuDFPVR14nX1Uh1YhAAN3zvZSpeN8Y URSUOSTE01ufpVOmN4WBCh1g99ZYQZE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1624371155; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qt9ifZERVwphuvdnSSK7DiTxmCTtBvIrdP9GVnQs/Ys=; b=rdjf4bYFCEC6GVfu1QNSzYyZOzjQG2BqSeukRhBV8hUkIn6Uw9a1IPHzRCVIUalS940Le8 zujah5+IBtk5uVCQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 607D3A3B95; Tue, 22 Jun 2021 14:12:34 +0000 (UTC) Date: Tue, 22 Jun 2021 16:12:34 +0200 Message-ID: From: Takashi Iwai To: Jiajun Cao Cc: yuanxzhang@fudan.edu.cn, Xin Tan , Jaroslav Kysela , Takashi Iwai , Thierry Reding , Jonathan Hunter , Dmitry Osipenko , Mohan Kumar , Peter Geis , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pci: hda: Add IRQ check for platform_get_irq() In-Reply-To: <20210622131947.94346-1-jjcao20@fudan.edu.cn> References: <20210622131947.94346-1-jjcao20@fudan.edu.cn> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 22 Jun 2021 15:19:42 +0200, Jiajun Cao wrote: > > The function hda_tegra_first_init() neglects to check the return > value after executing platform_get_irq(). > > hda_tegra_first_init() should check the return value (if negative > error number) for errors so as to not pass a negative value to > the devm_request_irq(). > > Fix it by adding a check for the return value irq_id. > > Signed-off-by: Jiajun Cao > Signed-off-by: Xin Tan Applied, thanks. Takashi