Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6015803ybc; Wed, 27 Nov 2019 13:26:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzoksXZD6u7EQvWT+/FKyfnRJtEH+Fx60Edk0SmrWPTIFbHz+Tn8/tH7olzq/Dskri0xr3q X-Received: by 2002:a17:907:40f2:: with SMTP id no2mr51729269ejb.250.1574890015379; Wed, 27 Nov 2019 13:26:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574890015; cv=none; d=google.com; s=arc-20160816; b=0fpsBycDQTbdQJGWWZcEIDt9nG9FwLEPilPWhCejYGQMD05AP2xeqjFMKiUe1i4JwN RiAul26eSFYDcstNbX13G3CFVYgwUpPZ1WZ9zM2ASEvGWM87dznAdlnEJdiUMqkR0rBm 9R4NTvoc8LYk2UzkCyOvDo8IYxFRb4/+qZr5BcbCo72eRLGSzJc+pf7nRNHO+Tgow1La o1IfXxaOYxysxNDuRGVELzK4UB1+Qhyh0tGxl7zX+/1aLFJoRWx+TRJF5eZd8pN8otcN PnWxAsc0zmySxadjVaaETHRSURLdAz6L2VWXyREeuwoD2UY4AcQC2Y8urO2XYAOFYMSG 830w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KbUVUWEpw2r3Xpm0T3s906VuZ3DKWKipNHOFKzEcZCU=; b=kxUL6c4KfhzD80JSqXDsNekOdlxuN8FWpNMI56PZlBHMTcoCoQPXtLyRLZCuOUuTwg wkHB2O2IlxPIgQp6pePvNfNzDqp+jNe64gxZ5ZcnT5/X5qumDcmTXN0+ooEeFLPS56/d hXuaHaQwWQVYkpkxgENSrIZ3Q+1dmClG5hvKG/AQpGSqMr7Y0cYp3GrSZTHVqDbLHjjR 9vgODyCLLNEvTa8vPB+z8hVpCtrkfbDZxPUJUEnrlL+VHvHA3QRVg82QUNeL51EypoD+ tLcgX8xRho2ofq5XE4hSvKo+huKS8Itc5is5EMiFNjmYBbR2LUb3co5tAIFeFQRH66Wu i0Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ewHwGGK4; 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 f13si11754777edf.164.2019.11.27.13.26.31; Wed, 27 Nov 2019 13:26:55 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ewHwGGK4; 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 S1731824AbfK0VES (ORCPT + 99 others); Wed, 27 Nov 2019 16:04:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:57632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731830AbfK0VEM (ORCPT ); Wed, 27 Nov 2019 16:04:12 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3FF62086A; Wed, 27 Nov 2019 21:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888652; bh=wX4O2JHToNm4AF5thow3+D7uWZoA5jbNZGRyT/NCEgo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ewHwGGK44y8Gs9z+JSlMCepYEPHKEtR9TP7Ap1/D6kgvJt39lzpC53mqEgoUpRrvO LGbYbnpjSn3ktmlFBLcRFqjoZrwhb+d7aW46OZfOC5QufriBbsrg2HiAsF1HyajeIj iCMrvzq8s9+oM6YsF3XrQ8VhtlRGf6z8PLQqpJn8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dave Jiang , Lucas Van , Jon Mason , Sasha Levin Subject: [PATCH 4.19 190/306] ntb: intel: fix return value for ndev_vec_mask() Date: Wed, 27 Nov 2019 21:30:40 +0100 Message-Id: <20191127203129.122203699@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Jiang [ Upstream commit 7756e2b5d68c36e170a111dceea22f7365f83256 ] ndev_vec_mask() should be returning u64 mask value instead of int. Otherwise the mask value returned can be incorrect for larger vectors. Fixes: e26a5843f7f5 ("NTB: Split ntb_hw_intel and ntb_transport drivers") Signed-off-by: Dave Jiang Tested-by: Lucas Van Signed-off-by: Jon Mason Signed-off-by: Sasha Levin --- drivers/ntb/hw/intel/ntb_hw_gen1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/hw/intel/ntb_hw_gen1.c b/drivers/ntb/hw/intel/ntb_hw_gen1.c index 6aa5732272791..2ad263f708da7 100644 --- a/drivers/ntb/hw/intel/ntb_hw_gen1.c +++ b/drivers/ntb/hw/intel/ntb_hw_gen1.c @@ -265,7 +265,7 @@ static inline int ndev_db_clear_mask(struct intel_ntb_dev *ndev, u64 db_bits, return 0; } -static inline int ndev_vec_mask(struct intel_ntb_dev *ndev, int db_vector) +static inline u64 ndev_vec_mask(struct intel_ntb_dev *ndev, int db_vector) { u64 shift, mask; -- 2.20.1