Received: by 10.223.164.202 with SMTP id h10csp1496991wrb; Wed, 15 Nov 2017 22:16:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMb+IvyGC4auwglj1ucYJNcl0cynNsUiRL/gMVrciKgZgGkjEPaAAjWtqIDnwu3PgDth5ojc X-Received: by 10.101.71.205 with SMTP id f13mr658346pgs.112.1510813002977; Wed, 15 Nov 2017 22:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510813002; cv=none; d=google.com; s=arc-20160816; b=tcNLldKJdNAs0g9wGwSDyopx2a33E0+x8oxyqtxf+/bsTbiIZivU1r1iGQgvF8ODBl zKKTQCqj/Zq/Z3zGWCIrZdMkPtaLBEhHU0KTCQBVEUopTqV7Y5Oipon62yc28Y9k6wF1 /sT+9Dm+o/fYGKroALVn8WlXRve07VzZ3cYqLWt/eHN8jPpj6iCfem/FpiZ5bq9GgV5k H6P5pBlQtefaiiuxm7ga7dvOCnfTuiW1LtADPuRcMxu7llpoKD3qLRlgt3hrO3BlHcWS Fv7oz07XowQREqEDxlRR/o9vJwmjU77cw7ki6JfMmX2yL8GLoKbZHNGCid1eWmbi8pH6 Fjpg== 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=3DZpcFVmM7AVNQ/tpF5oL6g3acrRbTdDfkmZdv6xfNM=; b=SvyIbQ61z8UqHrrEthR5JfMg51uvcV/y2rM5edFGdxhZEc9qpmHFYHmDVJsnyb7Ui0 WfpPSVMBVOnYVdviudwSUuw3LajivU99duNsi+pExaRk/9IPkfjTPQ/mQjHEk7mWOJFU D30aJo2yu5j8HVvHgVyssdEOvRNUvQjBjQRowHOKqCYL5jc6zkVP2MHVMHIjBUYyiqGX OrtXN61COOY9sF0Kk/cmvptSnnW8HQ4nj1FK7xoXL7+dhJsXGtlBY1CwyaHI9WqlYdK4 WXedHVxomUhYT5HVq7uiFSm/gWdmPagqhFhtFZbDerTB+L388rddWNgjXu/Iyr48BHNk d8pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kBO1o9hb; 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 p18si329180pge.204.2017.11.15.22.16.20; Wed, 15 Nov 2017 22:16:42 -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=kBO1o9hb; 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 S1759133AbdKPEaj (ORCPT + 89 others); Wed, 15 Nov 2017 23:30:39 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:44888 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932446AbdKPE3R (ORCPT ); Wed, 15 Nov 2017 23:29:17 -0500 Received: by mail-pg0-f67.google.com with SMTP id 4so10791502pge.1; Wed, 15 Nov 2017 20:29:16 -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=3DZpcFVmM7AVNQ/tpF5oL6g3acrRbTdDfkmZdv6xfNM=; b=kBO1o9hbmnFbONZ7Y5CP2Net7j8hf+HltfyJ1aMSfL3abc8fx2amdbm1+tJnlDApNy MLPW39mBryKj21oFHxFwWVDI0qsHjrWrTFUhRc/Gk51JXEki/vkFK42gTRygpaBPRXX+ HkXRTwSGxArTyjrqr9oJ1RhRPyVgMCBDngI4mwv4yBl4o8iUGZljFLDkgC5cNvQax8ny xVLGPh0Bpc6ZGJnq6nix7zQsQMaD97qOGsQazc6ysIgq+OeU7ZhWfXn/jaizA1e3rI2A ROvVdGqMeTlspG5aBTV4FGCndxhhGkzvhStwdJuLJMHgPc8LH4l7Dp3frvbwXZzodEIa /w4A== 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=3DZpcFVmM7AVNQ/tpF5oL6g3acrRbTdDfkmZdv6xfNM=; b=Q/fMuWu9pHUFoFCirfBOfTIOr8qPh97+lWmUD8742UcZgkO5C8ySNXS+y1CytgjmbD 3bhMPXWPskLrkgDPBksKJaZOmO9MYVW/8pZYpEdx9Q8VsSdR5hiKDKLrYO9QSFFFIHQ2 yzh+odLWUQuN1gCUpYf/NNgqcVxGhDO7+4EV1+50jram0XVeutHAJUhBRBCwsuHTyRjH 6vA/Y6YGZaHWwh2frdT9fFzWV+gDGdYlylzmoq9jbZ8lhuSqfoJvQEipGofU9vNYAfuF gznmVxjoWg0mdp0kPWplPRPGLgZX5A78gVhIRDVopbx0Ub16II3k/A2AsFsayIMrf+9y +VbA== X-Gm-Message-State: AJaThX5PyZjdZFA6WjTf6YGFzwm9fy2A8bEUYcVniXkC5lAete8TwE5d GFvDj4j09FJQr9pk1EHZwCg= X-Received: by 10.159.254.12 with SMTP id r12mr430436pls.218.1510806555949; Wed, 15 Nov 2017 20:29:15 -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.29.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:29:15 -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 09/12] isdn: hisax: Fix pnp_irq's error checking for setup_ix1micro Date: Thu, 16 Nov 2017 09:57:26 +0530 Message-Id: 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/ix1_micro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/ix1_micro.c b/drivers/isdn/hisax/ix1_micro.c index 7ae39f5..bfb79f3 100644 --- a/drivers/isdn/hisax/ix1_micro.c +++ b/drivers/isdn/hisax/ix1_micro.c @@ -256,7 +256,7 @@ int setup_ix1micro(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 "ITK PnP:some resources are missing %ld/%lx\n", card->para[0], card->para[1]); pnp_disable_dev(pnp_d); -- 1.9.1 From 1584206412404070476@xxx Thu Nov 16 07:22:47 +0000 2017 X-GM-THRID: 1584130663822637586 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread