Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1859632rwb; Fri, 19 Aug 2022 10:34:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR4eID5FueAtH2CRABaFI7he3U3lrmze7Wx2D+tUo4pfrS7JRHFO5ZGSY6nlTmFJu/nPLNmb X-Received: by 2002:a17:903:2102:b0:172:94f6:9cb9 with SMTP id o2-20020a170903210200b0017294f69cb9mr8186778ple.79.1660930462742; Fri, 19 Aug 2022 10:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930462; cv=none; d=google.com; s=arc-20160816; b=V4a3KMg3BB8vldqstiC3+mW6gt4rjCw7LrNpOU/cqVq9IZvFbexQWSU02tELmZQ320 rDO1W1TkaKQ8IGe5VIDrNSldD8wVh6jM4Ul5r5ZgkDpVs+xxF9uVhfSIqORj1LnHfZZ8 XK+CO5VIzIqYqTFNOyQrneu1Oz2QuluS3knMNcSflACcGvyH7SLevnBzL4b76iKMzLYK kei7C1ZG0Wi7V0ZXU7uMapU/IL8XWnryuyTKLXrIaPCPtwK+SWI7UHnL+/Q+qZIFA01q PoSgyyfFv5suYrmg/I73YhpplBbCwtwFbVAx/FBFam9yVGIDepiKwK4YA0PMYskvzfk9 HPQg== 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=mpP8HmllPMUCW6UL6qbN1VuE2g1eI3047f3vSse7WWs=; b=zq1rmvRv2n0c2y/Mh01hzehhqHCmxONYNbyUpppngWgOST70lPC/WhUQLeqxcoRdnQ aHzvrgWfzvay5AyEae3haWSkWhpmK9e/h9qPPCGcoHQVIGPaXdQFWDEXGo+pLAWvu8LZ KsSpxLls++a0aF1mjahzRCx3LDr6p4V1lJvaJEQv93uvBMhL2AJq+V6NM/vB4A+bRRJZ v3DmU0z+oJhnL6Ucd1NoS7+onpv5GS73FlHGuRPGu+vctcE8TuMczGPFnEmTxKX+7+qv tLVDBn8uv4g4jCzx1l33wzKH/7ZviFAlWjnbpLZahfvgrr47vNLYnmYo9ByVyC7cXm6f 3bog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="pmIAs/I6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i137-20020a639d8f000000b0042190539470si4651985pgd.327.2022.08.19.10.34.11; Fri, 19 Aug 2022 10:34:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="pmIAs/I6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1350192AbiHSPra (ORCPT + 99 others); Fri, 19 Aug 2022 11:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350188AbiHSPq7 (ORCPT ); Fri, 19 Aug 2022 11:46:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 447AB41996; Fri, 19 Aug 2022 08:46:40 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id D3F0A616C0; Fri, 19 Aug 2022 15:46:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E276DC433D7; Fri, 19 Aug 2022 15:46:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660923999; bh=GbrGJbi7e0JWVfzqMk8s61COOFR/Bvdx7Rf05jG7KD8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pmIAs/I6bwelI6B8qctb0kvaSw3u9R5AwYRMn4ev7hQGX9DNX+OjEriWi3Onvd/cP ViXZDkGmJqbZiQEWBkB/n6ncadjsq0fUm7qsuMUs6h50j+tyXmUw+Pf4Vpx9mr1HEv HCOybUizK+5sR3puDXDDrD2hEEn0u652a/Df00ko= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Johannes Berg , Jeongik Cha Subject: [PATCH 5.10 009/545] wifi: mac80211_hwsim: add back erroneously removed cast Date: Fri, 19 Aug 2022 17:36:19 +0200 Message-Id: <20220819153829.594079550@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg commit 58b6259d820d63c2adf1c7541b54cce5a2ae6073 upstream. The robots report that we're now casting to a differently sized integer, which is correct, and the previous patch had erroneously removed it. Reported-by: kernel test robot Fixes: 4ee186fa7e40 ("wifi: mac80211_hwsim: fix race condition in pending packet") Signed-off-by: Johannes Berg Cc: Jeongik Cha Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -3540,7 +3540,7 @@ static int hwsim_tx_info_frame_received_ u64 skb_cookie; txi = IEEE80211_SKB_CB(skb); - skb_cookie = (u64)txi->rate_driver_data[0]; + skb_cookie = (u64)(uintptr_t)txi->rate_driver_data[0]; if (skb_cookie == ret_skb_cookie) { __skb_unlink(skb, &data2->pending);