Received: by 10.223.164.202 with SMTP id h10csp2355487wrb; Thu, 16 Nov 2017 13:50:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMYPUxZLzVp4sr444rWjtAibKpOLJLwwYZs4eVR7dsdI486SHkE9XConc0HLltFMIQ7qjDYo X-Received: by 10.84.149.197 with SMTP id a5mr3092674plh.231.1510869047882; Thu, 16 Nov 2017 13:50:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510869047; cv=none; d=google.com; s=arc-20160816; b=Ej4RihKI6zDDxv98SMzv4VLoxBqzsd45REbFXShTo/zrnEiuSW200HZRP6Tc09rZo/ zEOer+gmUXpYsqTnb2/P61Z+nCEGg8+gEHwtXOssgMlNYfqTvAivKhteKuSyCOVWfm8z HZf55YvFCqgiGpagFcvaqygTt4p8YscbxYc+5YEsgtKdNUEhnfNZEm9/B9TT4BGIxWJh GsAE6z3Na4Wj6UPI+hcW2akS0Gmp5HR6BIuTtPZCxbiFr7wgWzH1ctOTazUB7CotrFi4 99ZZDvudWV/JXIrjZVUhrO5RUalP3UDx7Wk8XqY5aaw5d4AJdqQzr2nY/4LdtYrs3TJy CZDg== 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=STqwvPQquD1DtXwpOh5YMUvQ2eHTwzLH+BmdrxFd0CA=; b=0HVis5nnnmVXibKHoS+89E+ZH142zsU7KZkFBD3EZdxMxDhD5n0B6J3DJFJZ47UHCn Ulzz8cafCOgCOfNeLdg/JuktLV/uCICpeZBTEvvDYU9FzwbIIg/SukMoJHKRNcqRY+ZA RveAdUWSFHe5rgAGYdFaAf1sXfevhcchXldkhPKOHIh6FIAtTkNvjZOCY3zOYxoIRyfT NxbZ9CXbOfEWwiJQ2b+GnoUYNrOABmGP8vB2nGjmbbKeAMCtD0DGPz5VEYD+M10Z5fEl 3QIFdeSCh/zAAfcrH9FCp9NdJYiwI/PBicLytVUdajrb6LBjI9zM0SffPDcFmuAq0HnH X1Lg== 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 s184si1692752pfb.161.2017.11.16.13.50.33; Thu, 16 Nov 2017 13:50:47 -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 S965664AbdKPRi0 (ORCPT + 92 others); Thu, 16 Nov 2017 12:38:26 -0500 Received: from bastet.se.axis.com ([195.60.68.11]:55507 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934432AbdKPRiS (ORCPT ); Thu, 16 Nov 2017 12:38:18 -0500 Received: from localhost (localhost [127.0.0.1]) by bastet.se.axis.com (Postfix) with ESMTP id 69A961813E; Thu, 16 Nov 2017 18:38:17 +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 JDBcBVHTkLX6; Thu, 16 Nov 2017 18:38:16 +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 D4E321858D; Thu, 16 Nov 2017 18:38:16 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C282D1A06F; Thu, 16 Nov 2017 18:38:16 +0100 (CET) Received: from boulder02.se.axis.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B727B1A062; Thu, 16 Nov 2017 18:38:16 +0100 (CET) Received: from thoth.se.axis.com (unknown [10.0.2.173]) by boulder02.se.axis.com (Postfix) with ESMTP; Thu, 16 Nov 2017 18:38:16 +0100 (CET) Received: from lnxartpec1.se.axis.com (lnxartpec1.se.axis.com [10.88.4.10]) by thoth.se.axis.com (Postfix) with ESMTP id AA853228; Thu, 16 Nov 2017 18:38:16 +0100 (CET) Received: by lnxartpec1.se.axis.com (Postfix, from userid 20283) id A43E0400FC; Thu, 16 Nov 2017 18:38:16 +0100 (CET) From: Niklas Cassel To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: Niklas Cassel , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: pmcraid: use correct size unit when calling find_first_zero_bit() Date: Thu, 16 Nov 2017 18:38:06 +0100 Message-Id: <20171116173806.18378-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. Signed-off-by: Niklas Cassel --- drivers/scsi/pmcraid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c index 4f9f115fb6a0..04ce838546f4 100644 --- a/drivers/scsi/pmcraid.c +++ b/drivers/scsi/pmcraid.c @@ -5216,7 +5216,7 @@ static unsigned short pmcraid_get_minor(void) { int minor; - minor = find_first_zero_bit(pmcraid_minor, sizeof(pmcraid_minor)); + minor = find_first_zero_bit(pmcraid_minor, PMCRAID_MAX_ADAPTERS); __set_bit(minor, pmcraid_minor); return minor; } -- 2.14.2 From 1586203898755849192@xxx Fri Dec 08 08:31:58 +0000 2017 X-GM-THRID: 1586203898755849192 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread