Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3730899pxb; Mon, 24 Jan 2022 16:34:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxj5MDod/JbV1Dpfmh/GBvDw69lL/T5Xq42U3lrBcTbLZ3uPG0ZYgCtmUvpdi/mOtO5RFDK X-Received: by 2002:a17:902:e750:b0:14b:5fe1:f807 with SMTP id p16-20020a170902e75000b0014b5fe1f807mr4429656plf.103.1643070871808; Mon, 24 Jan 2022 16:34:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643070871; cv=none; d=google.com; s=arc-20160816; b=P9n7Q38Q+DgIOvZXFSSVQPrh184ol7s48P1/T1T7Jnx8K/5jbqdyabp60N8jlOWoip F7A6MblziNJX8EnkKAOCY1Rsx9ntS45XNm4E8iIIjwHwYi1LFo4F3HSwylX2hf2fYYmV vfHQ3NpQEBKsy29gNSG50C0IN9UuG97NGyNOcCINmLY6wrp8SrDCmvAoO/RgOb8MRbA4 TcfXO20zLlmyYGGOgF6fqfm8ONdsk6Lvnj3hElqfLPDnA2X3RINjx4JYQx49+Z6AUNxS OvXTggMxm/AyfnWO4f6xNAJkJpFAbxJePqcjfD2baA6QKOdws+qEFQkgBtSBQdcETZR2 z74g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0W4Euat8Pb8VScvmjrNctDj2myIBfgXbxLPUGsU7Ov4=; b=M/4sGizt6teAsNKPNPyaNLvZJ4vtBdQnT7SXYqMOUuPI2o84ixQryII4iK6HQew/dO NsLA58aTWUSsd3g4IcOqBPFsDhkh+VckkqnPsD/wGXthqD8znpOLvjJxdiuOsJLhcFE1 r6/qi8FvoRrTgV1NxH0OzYOLyKdUWKdXQ5/PJzCqP5dAo72B99+xw2W+lcKxLLlVtheW lb20t4oAC3QY4TxqVXz98pVbJbgb21nHJE2sFMtQjf5NY8L9SbX+YjY0bPLXmnx2r6Co 2TvpNncilbwwNT1sZFeJGP0ypEwm8gcEpdGDx9Sdc8CKSjGygPgygdO0u9OYL8AkyIRP fsNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="a88W/WAE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c4si15841055plh.192.2022.01.24.16.34.19; Mon, 24 Jan 2022 16:34:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="a88W/WAE"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S3411120AbiAYAcK (ORCPT + 99 others); Mon, 24 Jan 2022 19:32:10 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:52556 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1458000AbiAXVmm (ORCPT ); Mon, 24 Jan 2022 16:42:42 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0E774B8105C; Mon, 24 Jan 2022 21:42:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3B5ECC340E4; Mon, 24 Jan 2022 21:42:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643060559; bh=Ot15rwWFhC5Y9Tgc2XIb408EAx4V0xwHo7eIlUuZ344=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a88W/WAEGQc0xVS2o1qz7WV6Pvf7nKOvy98M8VINfssLqBv2RY3+rz//Fsj7wkLC4 eStPEJueuzx58o70hAptdSnbZT6k65oWDip8wxLcVfvR1QiiM77NL4lra7xFtrWk57 8jt2Wo+01roojwZSh8QaHAFlW0X8GQyV/jWvqj94= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Si-Wei Liu , Jason Wang , Eli Cohen , "Michael S. Tsirkin" Subject: [PATCH 5.16 0989/1039] vdpa/mlx5: Fix config_attr_mask assignment Date: Mon, 24 Jan 2022 19:46:18 +0100 Message-Id: <20220124184158.520054075@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Eli Cohen commit e3137056e6dedee205fccd06da031a285c6e34f5 upstream. Fix VDPA_ATTR_DEV_NET_CFG_MACADDR assignment to be explicit 64 bit assignment. No issue was seen since the value is well below 64 bit max value. Nevertheless it needs to be fixed. Fixes: a007d940040c ("vdpa/mlx5: Support configuration of MAC") Reviewed-by: Si-Wei Liu Acked-by: Jason Wang Signed-off-by: Eli Cohen Link: https://lore.kernel.org/r/20220105114646.577224-7-elic@nvidia.com Signed-off-by: Michael S. Tsirkin Signed-off-by: Greg Kroah-Hartman --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/vdpa/mlx5/net/mlx5_vnet.c +++ b/drivers/vdpa/mlx5/net/mlx5_vnet.c @@ -2674,7 +2674,7 @@ static int mlx5v_probe(struct auxiliary_ mgtdev->mgtdev.ops = &mdev_ops; mgtdev->mgtdev.device = mdev->device; mgtdev->mgtdev.id_table = id_table; - mgtdev->mgtdev.config_attr_mask = (1 << VDPA_ATTR_DEV_NET_CFG_MACADDR); + mgtdev->mgtdev.config_attr_mask = BIT_ULL(VDPA_ATTR_DEV_NET_CFG_MACADDR); mgtdev->madev = madev; err = vdpa_mgmtdev_register(&mgtdev->mgtdev);