Received: by 10.223.164.202 with SMTP id h10csp1456123wrb; Wed, 15 Nov 2017 21:15:49 -0800 (PST) X-Google-Smtp-Source: AGs4zMZanR3GZVVZWjQ9DizDF8YzKoHA4ipRnH6WdhHSHFkF+vM2mKgxRZkSP2wE01TQEvVRQW/u X-Received: by 10.84.165.171 with SMTP id y40mr522922pla.362.1510809349283; Wed, 15 Nov 2017 21:15:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510809349; cv=none; d=google.com; s=arc-20160816; b=kQdIY/gfKPyRO/jmov06hzU0Dd70Ctzo/w2Z1eFSox7TG17wxQy0JmPbQFme7zdqd4 h6KhDOkVJRMc3bacqSiVeryViE1jXG1q/db+5WIrEesqPWCPvP4RnHqAv7orD8UD21wh ulUWprN3dVG60rqePb9SqRpNZ992+w4LrxzrVNohu1Jed9r9rLv3oXihMdOL8kGES+y1 kvWT040TlYz6mBpbaJSxaUBBd4rd+GsCKoB7qdKlJPNiESANRDNBj1Jo7gDoEQJbT7ZQ 1nZA1AuxDElATlF7iCnXft/lzZTCYUOUi8Kl/ks8lxxKhMjKwfsCbEZvCcbaH/pzROkt Zyxg== 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=WMPKL2IxkQOOxMl/iLySB4uO0jSLNOpPSROH7sCkoWg=; b=hvhcPNttr5Mpve0X4RV24t2Rl1Ik6uWlFBdZ9WLKwVv0xcoVlrfKf8iTIrqKXWAIoE BmKOOZLvvM5GoYIfK7+8KMmWDmfX7hGa1b7oupxmAgbMJhxa6cq9ur9ytyMwAqY9N75+ y1Swm+Ok7FP7MAwAHlLbl+XRv0DxnVe8AKXN8LyZ+ZgZPd48je8d2CHK+RiT+SHAyrfE xmwjDw8aTEtvtoD+x4il3+6rvQ3g5yZsyKxD3ac5jbPlzJC4B5dvLf9odKD/1czJXpea 4HOk9YQ+a9US7vsBrKD1Hk/27qmajz884kQyXxKt6Yb4u+c+rotSPFv4bRm6C0hW0dhe xc9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C/g6d3/w; 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 n27si252347pgf.117.2017.11.15.21.15.37; Wed, 15 Nov 2017 21:15:49 -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=C/g6d3/w; 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 S1758875AbdKPE3s (ORCPT + 89 others); Wed, 15 Nov 2017 23:29:48 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:50984 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750750AbdKPE3D (ORCPT ); Wed, 15 Nov 2017 23:29:03 -0500 Received: by mail-pg0-f67.google.com with SMTP id u3so4543535pgn.7; Wed, 15 Nov 2017 20:29:03 -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=WMPKL2IxkQOOxMl/iLySB4uO0jSLNOpPSROH7sCkoWg=; b=C/g6d3/wbmH5eqrz5oVB+Zb+4Nu7cA7IZTN2TPBQTL17rzS3VZC36+YA95RHpayC2O DmZjRqg1dejgiJqGRYWimAGFAvnZILctq1kwWL6NPRBxNQMPPS6FyhM4Nf/zs2lW3Im1 56bMWzfOMKMhOPx0fF0NKUmG3yqvoHmdtC7S1JJ+xmvYZyoc5V+v6m4sDAsBto8SgT30 A2WbVL7zWKQKWelOfDRShsDFUWLjOjiRsM9w+TV2FaKrbJB8l0aqOQU4tZU7T1K1hOx4 KeohkJI0hbW/NjZ0ncpg7wnfpNkne5usXDqYFHc6AjiAnPZ/Vkx4h7V8hCbMFEzlAP76 9RUg== 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=WMPKL2IxkQOOxMl/iLySB4uO0jSLNOpPSROH7sCkoWg=; b=Dvi0pGsSHfxiCeHeDbNpWnZ9L5eLNYFAmMcRVlMAxJv8/2r8e683JQlkvOScbR/emx Hm+qSBMOhZP3qa3NpNNAbYzsb3iluqek743UtxgagIB4wZTf2cx9gpTbiF3T1j/eP1T6 mBBANcZx8LoOmWlGZSeZ+D6XwsQr4x8FueicW2Jsf5C4AvXQtt83ZwT1KNej5eeOKShj lEy9CX0kgX/BjLYpqToWC/2qWKsej/ahNUneF6pVXTKSoCHMgX61gVmeDMiHI6qkWWN8 IZ7y8L2nOvrhh3nSh+k48COYnkllg1G2dndtFOSA8mRUfs5F0c2M/8NyCt1E6+RdcmFZ OIFA== X-Gm-Message-State: AJaThX4EgFev9qj80gQKI5vDZ9APvGCJHbR5uZSel/8+gCyazWb8VC+I nZru78mFbOoit6EGxhljwYQ= X-Received: by 10.101.80.200 with SMTP id s8mr415356pgp.23.1510806542389; Wed, 15 Nov 2017 20:29:02 -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.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:29:01 -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 04/12] isdn: hisax: Fix pnp_irq's error checking for setup_elsa_isapnp Date: Thu, 16 Nov 2017 09:57:21 +0530 Message-Id: <2d169e32d2abac9872ad4cbb172e1fb3398db8df.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/elsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/elsa.c b/drivers/isdn/hisax/elsa.c index 03bc5d5..f8dcac8 100644 --- a/drivers/isdn/hisax/elsa.c +++ b/drivers/isdn/hisax/elsa.c @@ -945,7 +945,7 @@ static int setup_elsa_isapnp(struct IsdnCard *card) card->para[1] = pnp_port_start(pnp_d, 0); card->para[0] = pnp_irq(pnp_d, 0); - if (!card->para[0] || !card->para[1]) { + if (card->para[0] == -1 || !card->para[1]) { printk(KERN_ERR "Elsa PnP:some resources are missing %ld/%lx\n", card->para[0], card->para[1]); pnp_disable_dev(pnp_d); -- 1.9.1 From 1585766292878284028@xxx Sun Dec 03 12:36:25 +0000 2017 X-GM-THRID: 1585766292878284028 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread