Received: by 10.223.164.202 with SMTP id h10csp1430106wrb; Wed, 15 Nov 2017 20:33:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMZQOI4XhpJJlDzV9j5R+x/slh5hc2qvxkubOglo20eRJpJA4k35cgG6gggR36eb+UoO312e X-Received: by 10.84.233.207 with SMTP id m15mr409849pln.424.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=xf4tmsZB61MK5WwlWt906CIl667dfzQyDNZ5bYObl8uOPGUE9O3rJQOAH4gC6JxUi4 1ZGiHiMpmrOHf10tBVl68JIZ81BiXr4QKeB3lMikobjFcP7h9V9R1VbgtU9hqpVPDdUa LSjkjh3Ak5WnYhpgBaCeddCIvKTQfPNFhfc+pzk7sR9K/IB0xEP615WGr9YvPUdLUX9c W55HPgJm+pAOekmP1ek9N03Y+s81yOYJ9NMd/3g1wyUYecdoTnM9N3mQtfr0epH2AVfo RFNNARiHDvOZaRP/juPzk00Ft346L7wb8NRFlsd79nOzR+HCCNiDnT1UTwvkkW6aVwCx U9ZA== 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=RD4vYSiyGfWfM8+zBSilB1VFrlPVw0KeRxNFGzToHPQ=; b=U0S4TB+Gn+XSdWlIb7bAAoNRfZQ19qhFJBzrBCUDNQak51R9vQ6AHgIDqNpXvGEc+G aUpDJXNU9DC3h8YMq0k3Az+rkszBFUqVY7kFMF+t32yI7YheRZ2lkmEpkyWVN2boYr4x iyQb40qSmMMq5J70APBK2HBTSxPv2+VtYUc7VfOV1fOZtTek4yzldGWavvaGt50hThaP eLxrsxx0penJOHD4kfGRj2dLhH7hO2b4zITQ1KFosmeOmR7e9ZHd7SpGsWRS3bDyRtBt Gbc13ZFIADof7zC7yZRPJ32p8VqKpM5M9T+/uQ7T9rGz+bxoCfE04rzOOxrPTxte9RB2 hFCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ks/RCTVR; 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.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=ks/RCTVR; 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 S1756730AbdKPE35 (ORCPT + 89 others); Wed, 15 Nov 2017 23:29:57 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:49771 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758692AbdKPE3G (ORCPT ); Wed, 15 Nov 2017 23:29:06 -0500 Received: by mail-pf0-f196.google.com with SMTP id l24so6280585pfj.6; Wed, 15 Nov 2017 20:29:05 -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=RD4vYSiyGfWfM8+zBSilB1VFrlPVw0KeRxNFGzToHPQ=; b=ks/RCTVR7lLvdQW1b0tEO62pd0VJilHrJJrgUY79mvrz1fDLkyDDdXhHtpFE3sqORg JSoJ1UxYWTXbhf5CHzpms3Ix42a7xEue5nO9pPRh+XuF/F9ZE+ed2dCiCcbX3oVRTckx +eq4epFL1xBXTNtyDs3py7dCa+aEVSPTvGcdBZwmUdq70XW/RLot8LvpxN+PxCz+pCHi RH5VbYgnj9P0nDh6XCee/y1sHUjBsqbmVDjUk4rfqjxR75TwnLu9zfgyqjMAYoY8Q2Rh HBUFD24+XFRBMQjctwNd8V+8326IpO0I1ZxK96t5jk4EcG8JOpiqErOZj78OLHEQaneE nqXA== 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=RD4vYSiyGfWfM8+zBSilB1VFrlPVw0KeRxNFGzToHPQ=; b=mkc8VMdqwOzaN82v7DdrRMQTrUShpOE41nzhr+dUl0OUnus1E/CYASLt/AXlPm06AC 3WwgJz8BDeWgSUdD2rTuq3mjeY5J0KQp6JKESRejd9Sg8pppDIP7e/mTV4PbdCWvohSW kGos/h3wr+MbOSdkWJTuD/ziCURtm3CYQ3XRtMXESawElHexqEk4qZUfLryi/eHjyBHy 3/yMrz7W2SkmNKV2/R1DVohdBW1TgX+iLb0D/0Hs+tiNx8H4LYM7xBMyDQixB2DBohsQ MHmGsLiEEzYYbjo9HdKDDi/ZpxXFfIY01skhIFOjjyGbOqjcAPdVvmSqTHlkq52wsh5g hPTg== X-Gm-Message-State: AJaThX5VivhuNBaN9isV2g/mpE80OKqa9KJxODz2zK/CcbW/Lk/3hzOb i/tuU3sB4Fmupg3AKrgmfqU= X-Received: by 10.98.198.28 with SMTP id m28mr429258pfg.217.1510806545068; Wed, 15 Nov 2017 20:29:05 -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.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Nov 2017 20:29:04 -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 05/12] isdn: hisax: Fix pnp_irq's error checking for setup_hfcsx Date: Thu, 16 Nov 2017 09:57:22 +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/hfc_sx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isdn/hisax/hfc_sx.c b/drivers/isdn/hisax/hfc_sx.c index 3aef8e1..99f5a93 100644 --- a/drivers/isdn/hisax/hfc_sx.c +++ b/drivers/isdn/hisax/hfc_sx.c @@ -1422,7 +1422,7 @@ int setup_hfcsx(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 "HFC PnP:some resources are missing %ld/%lx\n", card->para[0], card->para[1]); pnp_disable_dev(pnp_d); -- 1.9.1 From 1590135130931827401@xxx Sat Jan 20 17:57:13 +0000 2018 X-GM-THRID: 1583900869414443113 X-Gmail-Labels: Inbox,Category Forums,Downloaded_2018-01