Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752468AbdLNNCE (ORCPT ); Thu, 14 Dec 2017 08:02:04 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:58962 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752408AbdLNNCC (ORCPT ); Thu, 14 Dec 2017 08:02:02 -0500 From: Niklas Cassel To: linux-pci@vger.kernel.org Cc: kishon@ti.com, Niklas Cassel , linux-kernel@vger.kernel.org Subject: [PATCH v5 0/3] Fix find_first_zero_bit() usage Date: Thu, 14 Dec 2017 14:01:43 +0100 Message-Id: <20171214130147.1790-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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 701 Lines: 21 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 (3): PCI: designware-ep: Fix find_first_zero_bit() usage PCI: endpoint: Populate func_no before calling pci_epc_add_epf() PCI: endpoint: Fix find_first_zero_bit() usage drivers/pci/dwc/pcie-designware-ep.c | 34 ++++++++++++++++++++++++++-------- drivers/pci/dwc/pcie-designware.h | 8 ++++++-- drivers/pci/endpoint/pci-ep-cfs.c | 19 ++++++++++--------- 3 files changed, 42 insertions(+), 19 deletions(-) -- 2.14.2