Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1017985ybt; Fri, 19 Jun 2020 21:46:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyaE7xnGtcUlBApuSJXFqcJLzDnHAnwRuIS1DwSMccGrRhSee6b80lV/hf5gFRlVHia0gP X-Received: by 2002:a17:906:768e:: with SMTP id o14mr6594460ejm.497.1592628375032; Fri, 19 Jun 2020 21:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592628375; cv=none; d=google.com; s=arc-20160816; b=iGii+4/Mt5pZ4XBg4n1hE2VlvjaVNaJXjlQBcbBm4vMQzn0HNrqFivGTiRvqeimeND CS5ZAqdM6d7JD1/Aharsi35taC37cOgyPAcwzwL3n5fAnZF0P8N2vy12KgzN/G/Gxkjk AJCnYic5r+cpFU6KosVHZoul5puXWMSr4dkYHAmFDicPKhXQ1vUgYWVEbO3EATDBsbhh fXmLOq5+LAAGBIkPgMUi1Ls9vkxowAw/hZ9WjXrbP1wQzPF3ODfpjsKIyf16IXuv61a8 TG7l2mlYcetEoc6aMXLApc7se1fu+hzQ8jmcxymsSoQ9vCL8XvbXZ4BbHZw0/Xet6M9e 4XWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=KIfMPBwAbPyXpMZbtJoCaGsnNqfMLuSMLpP/STnWlzg=; b=UaENnJJbvGT89PkeqGABSVPSqEMtldTYdDcOY7f5KpvlcFo+/ys7aM3O0oDdskRn6W m+gBcoT6xRgmWefmdITVmMJ0+N8xV+3loRYfJ0sjiT9FxiP2KTPOG1Bt8rwG92PjhZBz 061EwNd0X1RmHBlU2Dfum0a9Qyoz3bFnDHA9eGoCNqrqxRbCcOD0J1ad4EmqTGSJ8Mh8 RFMzndr3uENrwFZfej0GLW6cWGB3OUPkScep72/wNjWbr1YzpIVAJzTc9uiugmhM8Rd3 nhMym72rTVxLO1kSkanoD6sk4D5HOWApuFUKVStsRz1iiPOY+Qrr2ToK1ymmeXJyLVSS 86JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LtyiMQyp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gf16si5012528ejb.490.2020.06.19.21.45.53; Fri, 19 Jun 2020 21:46:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LtyiMQyp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391963AbgFSVMC (ORCPT + 99 others); Fri, 19 Jun 2020 17:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389497AbgFSVMB (ORCPT ); Fri, 19 Jun 2020 17:12:01 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABFAAC06174E; Fri, 19 Jun 2020 14:12:01 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id o15so11591706ejm.12; Fri, 19 Jun 2020 14:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KIfMPBwAbPyXpMZbtJoCaGsnNqfMLuSMLpP/STnWlzg=; b=LtyiMQyp/FFZubW5+D7Foysbwwy85DTvqClszgRgNmhLcYvR65lWt8fkqGyfDY8Tqa VDBkQZ3ADigK7DYgxlj93aUYWUVZnlPrlhP9Lt4lv3AK3SZ+9zoQxf7zu3pUUQMak3Ro fUf9nmwlXLRmY3tb4ZXnV03Vh0/JmlzfjyPJcmWGFOEhijyPYte7h0AjlrUXJmgeF0Oo rWWi3GdVA8skQgoKRyX3oCVYLxRuI5klFVgEuVJFlc6KRgG5vJNHL0Vs1StzSGYnzHK3 JvhhEfNVbUnysBFzTnLzB024bU2F55p6VO8WWnpHAsZV8YIIQPvfThIjqt2vFuklQzqj 0PSA== 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; bh=KIfMPBwAbPyXpMZbtJoCaGsnNqfMLuSMLpP/STnWlzg=; b=mURiSVGBGeBADQkpicpibHef9x6hj/EwgSgbD4ecZ4JFNi/bV2bWo5sFJFy62MhQC3 C9aW3BFilo1B66bVSvm2hTC9jnOJPnj4PvLP7pAvfUGlkttA402CBJCR/DrULgoN3iLJ zWu0ZaKghTeTmb5tYqve8E5ddrKtFYhNhM6y3qVAVFgmoEiOfCcMFgCNTp3rjpW37wQf 75/6uIjLiJOwRmMW2adO4QbwTCeYYMjNuD6dflUuUwO3zA8dyFccfRhqHGnsSeBe1+3a FGgPV03kS9hUqnWWXZw0FC8jnt8GCOX9XEDGrT1DiBeBJw2CGoCgkosH4U9U0zYCtpC6 nQSQ== X-Gm-Message-State: AOAM530TrtBu02B1rLrM4wCeU90ELdr7mVK5cCSNpCKzptPDaKSiOom9 qVfufyLozfNlKzhhlUmIW8DZAMZ1tDU= X-Received: by 2002:a17:906:adc7:: with SMTP id lb7mr324566ejb.302.1592601120219; Fri, 19 Jun 2020 14:12:00 -0700 (PDT) Received: from net.saheed (54001B7F.dsl.pool.telekom.hu. [84.0.27.127]) by smtp.gmail.com with ESMTPSA id kt10sm5485833ejb.54.2020.06.19.14.11.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2020 14:11:58 -0700 (PDT) From: refactormyself@gmail.com To: helgaas@kernel.org Cc: Bolarinwa Olayemi Saheed , bjorn@helgaas.com, linux-pci@vger.kernel.org, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] Fix wrong failure check on pcie_capability_read_*() Date: Fri, 19 Jun 2020 22:12:17 +0200 Message-Id: <20200619201219.32126-1-refactormyself@gmail.com> X-Mailer: git-send-email 2.18.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bolarinwa Olayemi Saheed On failure, pcie_capabiility_read_*() will set the status value, its last parameter to 0 and not ~0. This bug fix checks for the proper value. Bolarinwa Olayemi Saheed (2): PCI/PME: Fix wrong failure check on pcie_capability_read_*() PCI: pciehp: Fix wrong failure check on pcie_capability_read_*() drivers/pci/hotplug/pciehp_hpc.c | 10 +++++----- drivers/pci/pcie/pme.c | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) -- 2.18.2