Received: by 10.223.164.202 with SMTP id h10csp1817446wrb; Mon, 27 Nov 2017 07:52:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMYk7x7xUAh3pJnO19H53CTFXyq7hqD2Hi9SWtGDZFKggOs0B08bghC3OSebrGnIs+8iokeX X-Received: by 10.84.232.200 with SMTP id x8mr32523622plm.101.1511797943054; Mon, 27 Nov 2017 07:52:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511797943; cv=none; d=google.com; s=arc-20160816; b=T73j3TIoU65HcO/5GA7cu+gF+TI1PgRkO3bS6dg1Vk4TlRhHrQkhwn0xPtQbTmIckg Y4Duz//8K7AqI383wi9fIvinuXC87RdLTOeqp49twAObZ/Q/35EjCOGAuDVHNVopuG7F tiWH/h3+2IkeL6Ph6NZj/8ef0YvBhcGhSQhE0aEIcK871cDQFM/p/9gr+NYh4Usre/Kk 50/60gl4E8gRSq4UH1eiCUT/QBCJfAkUpFig++naTDT7PZ4QdN5yX1fSMDlGrLwBHf2H gF5a/JGN+kb5SmuK5j6DOAMvf8Wzqv9aKEKXsGUUxf9dgP2VJDoJpZAMXzOGYYkT8iRX lyMw== 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=+uv/HNK0TPj1bsl7/ccb+hNNqwqmZZgBCBJdlAJAhQc=; b=lQOIQtF86Z8SLmZyqLcOtfWvyILFqcoanvfEbqSyfpdbdmNGDYiuyFMrYJS/QiM9AW iGngYiyKm+sVEQvRI7nd/DM1nqR8C+iGH/e9yqzrDFzHUivy9K92NR5gd/o+wA0WNWy6 LKuiVc3Y7Jp5KRf0qO1suulUsmF5qiV0leCfSMBsA6gNSY7KkQiBNIQDyxszBYcJl6vP 70FitJWC2IQ/vgZOpl7N5HZXrON1NGRIhN09D3TT3fXoPw0ley/9QaqwvY2sIvuM6+xP JWuJZSiY/Jabo0Y8jtmgDhP7gaTbxgnyC4/vGWtduSxDKlWuDXQ8dR4EqYZ9SqhkxUNc HDBA== 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 b3si8492964pli.459.2017.11.27.07.52.11; Mon, 27 Nov 2017 07:52:23 -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 S1752856AbdK0PuL (ORCPT + 78 others); Mon, 27 Nov 2017 10:50:11 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:40315 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752550AbdK0PuH (ORCPT ); Mon, 27 Nov 2017 10:50:07 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 98E0618324; Mon, 27 Nov 2017 16:50:06 +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 6LKgrJSmUQOo; Mon, 27 Nov 2017 16:50:05 +0100 (CET) Received: from boulder02.se.axis.com (boulder02.se.axis.com [10.0.8.16]) by bastet.se.axis.com (Postfix) with ESMTPS id AC4C51831D; Mon, 27 Nov 2017 16:50:04 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 63BFD1A075; Mon, 27 Nov 2017 16:50:04 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 58CCC1A063; Mon, 27 Nov 2017 16:50:04 +0100 (CET) Received: from seth.se.axis.com (unknown [10.0.2.172]) by boulder02.se.axis.com (Postfix) with ESMTP; Mon, 27 Nov 2017 16:50:04 +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 4D34830CC; Mon, 27 Nov 2017 16:50:04 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id 4722040102; Mon, 27 Nov 2017 16:50:04 +0100 (CET) From: Niklas Cassel To: linux-pci@vger.kernel.org Cc: kishon@ti.com, Niklas Cassel , linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] Fix find_first_zero_bit() usage Date: Mon, 27 Nov 2017 16:49:52 +0100 Message-Id: <20171127154955.22214-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 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. Also had to fix broken error handling in pci_epc_epf_link() in order to do proper error handling for find_first_zero_bit(). Niklas Cassel (3): PCI: designware-ep: Fix find_first_zero_bit() usage PCI: endpoint: Fix error handling in pci_epc_epf_link() PCI: endpoint: Fix find_first_zero_bit() usage drivers/pci/dwc/pcie-designware-ep.c | 22 ++++++++++++++-------- drivers/pci/dwc/pcie-designware.h | 7 +++++-- drivers/pci/endpoint/pci-ep-cfs.c | 14 +++++++++----- 3 files changed, 28 insertions(+), 15 deletions(-) -- 2.14.2 From 1585199371090693570@xxx Mon Nov 27 06:25:26 +0000 2017 X-GM-THRID: 1582959875065094886 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread