Received: by 10.223.164.202 with SMTP id h10csp1430105wrb; Wed, 15 Nov 2017 20:33:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMagraiGfgsLz+O7XMZFE/UdyfWzSWw0hX5RI3KYrXSNqeC0TaeIeF6AQkusJU2rgCq93Pz2 X-Received: by 10.84.128.197 with SMTP id a63mr427898pla.210.1510806797534; Wed, 15 Nov 2017 20:33:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510806797; cv=none; d=google.com; s=arc-20160816; b=kV6MR32PcW9fdJ1P3AiuVwjhyQR5LeJloFsNQ47T1MPcmXNcXzW7CJmwN7utMUMCHL GTl087I6deKPZ8fH0iHelY+ji6AjiYYO6yKVAuC/OGEjUo1cxY9Jyc7poQtoCuqkax/D qWQBq1G3NGbCzpgEV/wK9CruhWdk4CaLaI+1hLfGimv15/JPkhuJpy2mBx1mWdkOPU1E GmWpaIV0+VxiZX7LutTfdpSt4UeEJOiE/rtcDpx6piGZMRQdsmn+89xNupCaNX2fTQBV cHF+38GWYKTCeBxFB1qvtZfxJojFNDep76pjmbJl8shhPg6FxRoQJHB+Mc5Xhav8dSg/ CN0w== 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=LGg+QPPj67kt0zlEKQf9Z1xyoFzCEl02BtdUEIPIpRc=; b=J1B0Gc7cwDwOdYNYYGfpIyqVDVNF7VvPKCfagySsA6sHJgIbpxVx7BRqt8sPWtz1Ry zFFoo4D98Y66/gXmcg8FwIOzF4eE0xu7wDmC6ugVXnswd4t5QTXm48z5zcy6c6XTzKJN fm6z1NDVoG/cSLbD4dlAiJS+Lh7RQyy7yjvlgZu/D3gqO4LVUZ3PH8amfKZyXNi87zDH 01OnHepP/TluuCAdTwaXX5O2NETekXT23U7eGFIRrxLHPd+5oVtVkMwJQKZLtPnYXBgV mUYNtA8ccXhZG90naPbMnlTmpCMKTtPkXgqCf3kIgatgqGeMEpxSk1J1ckrX2UkYy/8T 8dyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZLBFlPD0; 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 w24si190998plq.427.2017.11.15.20.33.02; Wed, 15 Nov 2017 20:33:17 -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=ZLBFlPD0; 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 S1758812AbdKPE3h (ORCPT + 89 others); Wed, 15 Nov 2017 23:29:37 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:49985 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756328AbdKPE2z (ORCPT ); Wed, 15 Nov 2017 23:28:55 -0500 Received: by mail-pg0-f66.google.com with SMTP id 70so7187246pgf.6; Wed, 15 Nov 2017 20:28:55 -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=LGg+QPPj67kt0zlEKQf9Z1xyoFzCEl02BtdUEIPIpRc=; b=ZLBFlPD05Io7VEwo5mV1+XRL3Im1b+QTms+ZU3hqUHsUajmYgD2bf+x2dihBiWZGLy ca0TXc0rl4R33c8fyG9ebIHEimxoornvoTUMfSLAsELu3TDfgvpaVXgH3kBLY/6Q/PtA BbVMKqjduaJ5cp9kqi4VeY0DkXUYm6QPpuqS9CSB0OWhW62IVWfjcPUP92FcnViJReE4 tq6ANc+dnHPVwBQT396HW07FzYe5czleXzh5cLLgG8bAJ5m2hgfG63JkCJFXcxHrVEY1 uKjqE6m/TEA04HXEkH8jy7FFF8pjGzJ+WEDTZZlsbw0yudos9zvHrOF9he34cQctCoMX gayw== 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=LGg+QPPj67kt0zlEKQf9Z1xyoFzCEl02BtdUEIPIpRc=; b=MjpwJEPm1rI/1Ba8AkSWGlRA1XVEzSIn60xHAINAkiaV3T4pVk/730BqNMHnJR+TfQ mHh2Qsgt8PAMEf4tEF1N71iN3Yw3KnVLuojXI6Wyeo42VnvwIzLIRmoOcEA/sA1MzrFO ltDCDfm8xeWoJRjhO3PuPiE14iOfllosIRayDfK9fw2mGaOeC16yOCG70xq9lWazIBAc eTXHrBa07v0x2MmdJKhvnrCICeCwAQ5wxn85nWEXfIvknu5b4uMDCcrlDDUa8Zh+e8sp j0+NzKOPM3CWB06q/f425ueg8zJEeD9SODkrT5jPdAhmfD/shq6hxHypEKpTJbVNQonr 1woA== X-Gm-Message-State: AJaThX5hgvwTDKfQv0mZOA7nIYpLyjnUuxLvzLSTkK/EIn4BlgDypkoR wlJLf7OkKezrw5wFn7k+gR8bwg== X-Received: by 10.99.3.146 with SMTP id 140mr399551pgd.275.1510806534445; Wed, 15 Nov 2017 20:28:54 -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.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:28:53 -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 01/12] isdn: hisax: Fix pnp_irq's error checking for setup_asuscom Date: Thu, 16 Nov 2017 09:57:18 +0530 Message-Id: <1103d4f44048f944961fbab0fbc16131c7f54d23.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/asuscom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/asuscom.c b/drivers/isdn/hisax/asuscom.c index 62f9c43..74c8714 100644 --- a/drivers/isdn/hisax/asuscom.c +++ b/drivers/isdn/hisax/asuscom.c @@ -348,7 +348,7 @@ int setup_asuscom(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 "AsusPnP:some resources are missing %ld/%lx\n", card->para[0], card->para[1]); pnp_disable_dev(pnp_d); -- 1.9.1 From 1584780507407257838@xxx Wed Nov 22 15:27:47 +0000 2017 X-GM-THRID: 1584780128559606455 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread