Received: by 10.223.164.202 with SMTP id h10csp1497795wrb; Wed, 15 Nov 2017 22:17:35 -0800 (PST) X-Google-Smtp-Source: AGs4zMZd0t6XthHbs/m6Xe0/D2Rp9WGUeaDfYf/YldMILGWVNurrKf4mm6dMpTINaxAWw2VtigIl X-Received: by 10.159.246.134 with SMTP id c6mr612278pls.371.1510813055537; Wed, 15 Nov 2017 22:17:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510813055; cv=none; d=google.com; s=arc-20160816; b=HXFlKD31mKF5qKV0t/wVrNmbAKrxoxNmxaEVoriTYV6SQ1MgGhICPhJ8GG3ZXG8U21 cgeZa0Sea6va1K5bxhj3QKHWEpoBSPTIqq4G41HW2UWvOYdrz00wvnqbZZ7UO7epkCn8 iW4pK2RPL8jOHtOch32ne+I6I//ek4nbLPaNj0HH3WRUJVW0Oj+XtUPlfwfRJAYIS+Ma EkJLVSsP+3io3Vp5nZnugQAfTCx99K9gpdpCd+Qx00rsIQwLiQbk5pSNGFWFb0A1b8WE /yJR8PzFoAyZPVKayOKf2CN5SfQ9aMS6gZtHvaPDm5NmQ+VrhIQwQ+hS5cKYtOn3b7qT ue/w== 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=TQYbha2GK805nYlpg+QUnTO+9keCiXmJyIoDsrk9a1c=; b=g4g3BUwyQ9ODPXrC0r3RRnEB4NJLTnjgfQteACcjmc1xebKXG0txyGUGMDTb+o0Yyu MAJc/jvSpn2OslzZVPXOX70yacrHeOi3BArwRzbFfgMthtk92tQRm1XIaP+4D8lHPjPi 3YISolWsQ0+Y2obFYJPnx355yHT4XhSo/S8XWYT1MJEVnmSm5LfQN+Th2jI47icHfKQN ZqIucxtiH/ZO7A27F2a1Fe5tIYpNW1kkvlXC3QoIbLcw7EtUppe/q6Nc6CJKD6rdk9ni 9Jp+OT6jrV/0z+a4JZ0FHHfx5EI+Pxa6LiVjIIQ4F3wL8MgMP4BYKkPzKrLSKJ0AWKN7 KKcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vcyjA2YP; 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 v85si319745pgb.584.2017.11.15.22.17.23; Wed, 15 Nov 2017 22:17:35 -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=vcyjA2YP; 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 S1759243AbdKPEbG (ORCPT + 89 others); Wed, 15 Nov 2017 23:31:06 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:44899 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758750AbdKPE3W (ORCPT ); Wed, 15 Nov 2017 23:29:22 -0500 Received: by mail-pg0-f66.google.com with SMTP id 4so10791684pge.1; Wed, 15 Nov 2017 20:29:21 -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=TQYbha2GK805nYlpg+QUnTO+9keCiXmJyIoDsrk9a1c=; b=vcyjA2YP2M70eP6YxQ7QsjOrVBYGC6j1tgxHqKEKsfbfZV8w/G7bajm9BW6c5oTmpr 6iOzAayRXBmmyecWmNV1HnukbiwvB0fvv9wm78RwRLei/vzmI+IN3fXOsi7e0DQzNKat +H2h5Yw4few6UiEzopTnFmAVKYjz82nFpIdSJct7O/ZoPozojB48iquK2YIS5N1Yqq8r xitt7fu4cJFNnH199UJsCxujCVxiVzHY160adPfKNAQUr5R2aQncDy5pxcybTJoD+bBR 5N/2GCzcpX255HYtyOzD3VYPofSroTogy2EsPK4r/KWGbdSK7N5Ihouc5Su4g/inhUfN nNZQ== 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=TQYbha2GK805nYlpg+QUnTO+9keCiXmJyIoDsrk9a1c=; b=lxRcGq2dS8ESuNY5M2U/PEibmHePtIr8jcVkN2AgiehFYefOhb6T9ZLN+QVmUdvqgl ye6UZxIuTO4tT+RlSfxlwpcj6ZPX/SpukT1fL/agMswfWKNXHkAzK0ZholsYT+U6gS0d yd14JbnJvSX4k0Sc2CJQP7cN3kPpz+S0f0H/QNhLT4Kd9sMsQjRXnAHd5LcptiAg51jk vd/rHWgnl/gk7nhgC4uQKp73ajC42SsKLcx9qsghYdENMxaJFtQN5FWU+vWgsn8BdwWi ZUwysgHi+ZUETC/ygn5LWPuDEPbyQG+wCeXo7LI16ZqCjx57FXLgWmlGeRHVWOL4Fuda q1QQ== X-Gm-Message-State: AJaThX7GuYfaCOzfZAukGNMrg1SgVtwg1aP2SglHxsvVWUeFm2jf5RAh 2hrrgg7DxcGKAcYHKm8zzPo= X-Received: by 10.99.97.200 with SMTP id v191mr405293pgb.300.1510806561558; Wed, 15 Nov 2017 20:29:21 -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.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:29:21 -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 11/12] isdn: hisax: Fix pnp_irq's error checking for setup_sedlbauer_isapnp Date: Thu, 16 Nov 2017 09:57:28 +0530 Message-Id: <35eb61ef566cb62e6ca555f5167c0bf3655c9eed.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/sedlbauer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/sedlbauer.c b/drivers/isdn/hisax/sedlbauer.c index f16a47b..c0b97b8 100644 --- a/drivers/isdn/hisax/sedlbauer.c +++ b/drivers/isdn/hisax/sedlbauer.c @@ -558,7 +558,7 @@ static int setup_sedlbauer_isapnp(struct IsdnCard *card, int *bytecnt) 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 "Sedlbauer PnP:some resources are missing %ld/%lx\n", card->para[0], card->para[1]); pnp_disable_dev(pnp_d); -- 1.9.1 From 1584207438312349937@xxx Thu Nov 16 07:39:05 +0000 2017 X-GM-THRID: 1578315679430361684 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread