Received: by 10.223.164.202 with SMTP id h10csp1431106wrb; Wed, 15 Nov 2017 20:35:01 -0800 (PST) X-Google-Smtp-Source: AGs4zMbTNlYzBkh+tRmnFGV550qFLBz2AYdDONCkbciM48JrZz5I3N/NLilqIvgp7YAUlkwQLvAo X-Received: by 10.159.203.197 with SMTP id r5mr394277plo.431.1510806901803; Wed, 15 Nov 2017 20:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510806901; cv=none; d=google.com; s=arc-20160816; b=J0wjGS0rjVi+cSYbUh3Ay5hSBTpFEH8Mr+d7pw993Z0isBgGe54UHTGo77gM/XKgIY 1n6Lr2R2znHBILVlRE2UWeAG8SR1xem7iN6j1G5DkbrxhyQ6kid4XGoWOgM2HAGYzXSB PKm1RMrekSQ4JpFO1d1IA1OO6SLfbqXWcOgA4qkn4mSZ2LwnaoB5Jnf6AElWN2T6eNPz q9AR3gtB4SzVdbxV2M4D8TuVgJqc55P6M3jSsrcEcmuhjiVPu26zzclfyZKpVHKlqr4p Uz/Kzx4vok9n5WM1L6fgDHf628B61WGsqYnSZBkFkrydS3dCKX8GcDA+YTiUss8DijOQ zFoA== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=9VlEMkQnYW0EJtBWOPxVioj2m2eWpIhIJDCeNas65iM=; b=D9wf1hUbhBYxxDzauPeg1KnyC6njlvTNWibIBvHBpo4eFrkFS5fmvEAzpoeSqmfDHH m+lcc5OZHDCRsYkPAE3MOmfx3+mtLwYgaVD08H54950hW+dh5JoUUdii1wQ8MbxeKy4r d2+eED9ilO6Bu9f/EraLX3ca4ZcAm5kUQrEbYThWsc94qrKN+lKynTKWJk6IEBoocID0 rJK5HmogDFCuW+uX6skt/dRL1yeKCwu6k9EcS07jeq/lrVdmPsbRyUJl1JdTHNIOq2Nc 8Qlm+6oaHltT3naFe+z0DVJsp6joMIXUS0pVhfH0wFM99Y919c4IzUNrcVTuAn7MoKm3 2xtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jljRhUvv; 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 f1si170598pld.419.2017.11.15.20.34.49; Wed, 15 Nov 2017 20:35:01 -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=jljRhUvv; 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 S932488AbdKPE3R (ORCPT + 89 others); Wed, 15 Nov 2017 23:29:17 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:57284 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757688AbdKPE25 (ORCPT ); Wed, 15 Nov 2017 23:28:57 -0500 Received: by mail-pf0-f195.google.com with SMTP id q4so10577911pfg.13; Wed, 15 Nov 2017 20:28:57 -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 :in-reply-to:references; bh=9VlEMkQnYW0EJtBWOPxVioj2m2eWpIhIJDCeNas65iM=; b=jljRhUvv9eGf5W31+WhGztQpYYxGcze3uf8i8RRwF58zPyb8LIWYQKQ3Uj3tOhtGpt JTWNGu/jBozWNzneVBllHGMGIikWkge3TiZWF5iSuIREYUqojEPQbYMN7BmokTu6uyOE 4EQSUMNHhNRAedFnrDR0gj0qjNtUZz9wk/Hetd1b7pMVcWaLO+ivPZjS1r32cKj1d5/l pyNDDtDHqaz2vzk8BgzjMWZk58756dqyERKOAiSKx8CUWhAaLkpf46wHzan3TAvj042K X0P6uUYMjKBOE1YXbyrODyULMFb26XdHG8YNU8t2ZogF0TAFpspE8RgzhoihNxclRXS0 PQoA== 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:in-reply-to:references; bh=9VlEMkQnYW0EJtBWOPxVioj2m2eWpIhIJDCeNas65iM=; b=jAvtLEBjDmgKWf9VcjHBM2UhKwtLlCalvQU0H3ky3OO9mXATtzOQTdCaiSVbo8FxL9 6OtxkxgK5OCVgyGeP2/FvANRFrah/QljkEdeCAndWUzGtmzCjD/d01GrsYKthiMnAlun dX42ufLHe40tzmajkrSwizQGNZ3T+g2BqVwkmcQtizVq9MK1j2obyJwcXV7zr72wrIZo 8yjmuEmwwSj2bl3kTCI1fCGvyN0klVHtIwDkW0t9xwYMxizQtxZR10EP7xR5G1BkyzP/ QI+RIrAyDfsdbUe9bxBlclKMyRpjcjZXrfRyxN/nlJwj4GjGyRaN8knHUtJ11/WinipF GmJg== X-Gm-Message-State: AJaThX6tS8tuD+Ed5Sdnhu2K324pa2YWuTGsQue29r3zYf83lgqogQva VAwz+sjGrML/SyGqYFe1N60= X-Received: by 10.84.132.42 with SMTP id 39mr405396ple.382.1510806537088; Wed, 15 Nov 2017 20:28:57 -0800 (PST) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id m69sm421965pfc.27.2017.11.15.20.28.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:28:56 -0800 (PST) From: Arvind Yadav To: isdn@linux-pingi.de, davem@davemloft.net, stephen@networkplumber.org, johannes.berg@intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 02/12] isdn: hisax: Fix pnp_irq's error checking for avm_pnp_setup Date: Thu, 16 Nov 2017 09:57:19 +0530 Message-Id: <14ab3ba543bf96791f5284e1ed16f48a2f460842.1510805781.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pnp_irq() function returns -1 if an error occurs. pnp_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- drivers/isdn/hisax/avm_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c index daf3742..a18b605 100644 --- a/drivers/isdn/hisax/avm_pci.c +++ b/drivers/isdn/hisax/avm_pci.c @@ -805,7 +805,7 @@ static int avm_pnp_setup(struct IsdnCardState *cs) cs->hw.avm.cfg_reg = pnp_port_start(pnp_avm_d, 0); cs->irq = pnp_irq(pnp_avm_d, 0); - if (!cs->irq) { + if (cs->irq == -1) { printk(KERN_ERR "FritzPnP:No IRQ\n"); return (0); } -- 1.9.1 From 1584075286663319596@xxx Tue Nov 14 20:38:36 +0000 2017 X-GM-THRID: 1584075286663319596 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread