Received: by 10.223.164.202 with SMTP id h10csp961100wrb; Fri, 17 Nov 2017 11:29:33 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ38/I5w+cWkYunIM1U6vfQ8uwX6kgIcrY9Xq7R6kfiB+I8hJH6hpq/x/9XwKJ8Fz3q7540 X-Received: by 10.99.115.85 with SMTP id d21mr5972268pgn.82.1510946973057; Fri, 17 Nov 2017 11:29:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510946973; cv=none; d=google.com; s=arc-20160816; b=o5wS5e9iRu5zU7LsrySH4fo0uF8iy5wyzzIql5jGAPMKONBcCFWtCqlvjCm1hMUapP WKmT3GEN5evv2ikp80ryakA8knMbucdt7Fcrhl3bugpcOc0y37/t+QiNexcNZt7FTIcz 1nAtXZoxV3FXFRj4EN2WqJIOt3tkMBFwWYzjZcRCJRG6JIlCyaqEskW+uU0F/Xz5mdeL mT6eqHh1efCr0vavfSKwQsoUlRRtZYHsZEG925k6NSAnK6vfArUjdXO1ctUefEgl6XqF KWJRSGd0OU3zTocumd2U/6xXg/kdqAH3sV9PlEYPU2sDOO2xYfGWPIW0i/7jdflFfRhv Gcxg== 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 :arc-authentication-results; bh=/Uag8r048EKptYdV2nRDEPAVrVPMy5eIiZC11jDJWuI=; b=CjMWCvFfZNUpNnCK37t+haVy97NPhchTwibLvect1HVu2iAeb57nzTWnKpcZTzWuHr X2wXJooJoZ3r8UuA07OlpEXTwJxJmsvV2ATP1/Z4THtflFF7HuKkhBieUwYUXKydA/zn i7/16WOE3iVN2DF7E5+FZ/8PP7Lim0PzZZPWzZLwv8dmtbsWHAs2vvICAeOMHjpNrMxZ i/3/CmKZANpbv7xBpECKKNyrgBB2cIZAnHVYbPGfeCdZL1JDLq4wwf2ButFqsDXtanBv gnuKveBt09K1YCeLf8otmhBio6+hpwisC4uL/yaPGBqxZDRlI920gwXdm+7biLJJfx0s CVtQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si3254238ple.311.2017.11.17.11.29.19; Fri, 17 Nov 2017 11:29:33 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935209AbdKQPAx (ORCPT + 93 others); Fri, 17 Nov 2017 10:00:53 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:42431 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758843AbdKQPAt (ORCPT ); Fri, 17 Nov 2017 10:00:49 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 38B7C185BF; Fri, 17 Nov 2017 16:00:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at bastet.se.axis.com Received: from bastet.se.axis.com ([IPv6:::ffff:127.0.0.1]) by localhost (bastet.se.axis.com [::ffff:127.0.0.1]) (amavisd-new, port 10024) with LMTP id iXGhiBhKRdtx; Fri, 17 Nov 2017 16:00:47 +0100 (CET) Received: from boulder03.se.axis.com (boulder03.se.axis.com [10.0.8.17]) by bastet.se.axis.com (Postfix) with ESMTPS id 76A8E185C2; Fri, 17 Nov 2017 16:00:47 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2A3271E07F; Fri, 17 Nov 2017 16:00:47 +0100 (CET) Received: from boulder03.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1D3EA1E079; Fri, 17 Nov 2017 16:00:47 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder03.se.axis.com (Postfix) with ESMTP; Fri, 17 Nov 2017 16:00:47 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by seth.se.axis.com (Postfix) with ESMTP id 10AE81099; Fri, 17 Nov 2017 16:00:47 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 09572400FC; Fri, 17 Nov 2017 16:00:46 +0100 (CET) From: Niklas Cassel To: linux-pci@vger.kernel.org Cc: Niklas Cassel , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] Fix find_first_zero_bit() usage Date: Fri, 17 Nov 2017 16:00:39 +0100 Message-Id: <20171117150041.30509-1-niklas.cassel@axis.com> X-Mailer: git-send-email 2.14.2 X-TM-AS-GCONF: 00 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Niklas Cassel find_first_zero_bit()'s parameter 'size' is defined in bits, not in bytes. Calling find_first_zero_bit() with the wrong size unit will lead to insidious bugs. Fix all uses of find_first_zero_bit() called with sizeof() as size argument in drivers/pci. Niklas Cassel (2): PCI: designware-ep: Fix find_first_zero_bit() usage PCI: endpoint: Fix find_first_zero_bit() usage drivers/pci/dwc/pcie-designware-ep.c | 6 ++---- drivers/pci/endpoint/pci-ep-cfs.c | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) -- 2.14.2 From 1584366130848435814@xxx Sat Nov 18 01:41:26 +0000 2017 X-GM-THRID: 1584366130848435814 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread