Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3456813rwa; Tue, 23 Aug 2022 05:12:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7rcLB30dFpaYa+Yo/h8fCi74Bavkdotno382FBztA4rFjIMllOvB2DagQCuhmmgG+Q0JVe X-Received: by 2002:a17:907:6297:b0:72f:9aad:fcb with SMTP id nd23-20020a170907629700b0072f9aad0fcbmr15712034ejc.161.1661256745155; Tue, 23 Aug 2022 05:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661256745; cv=none; d=google.com; s=arc-20160816; b=iItlES6seFB0o/RUzziAqsq633HDKGckj/ZPuoMev/XQMno091BkcorysSYhLZyDVj G00j0rkUPGh1IJ1gMZNbABIuir71tQm4Qlou4XcJgkzqQEob9b07gLzY+MWhxSVSckB5 5fs8A0KkuQIP4zWbJH2dvr1HCd4gPtHKU/6Vr3fjxYD9uALxVITd4aPIJrP9nJbszkGy ZrV397vlZ079A93UmMrw4yk2q6mfwhPaxwJfDdC5WaUOsAbnS7/aegxumZOGyz0LzS09 nFIBBFiz8N8LETwQTTeMhn6Ze4C6NZjO7CR7Wg5kG2rof6fayUjkuTHXxo4e5ECLTaZV Mzdg== 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=M85W1gea/exCdwg1OrLqIHv9DloD9fcMLnS81Iqcnkc=; b=qvKHWtmFTl/mrwKASQpQe/rFXQfawsd3G4VnYnr+LFX8/5eGlgQSAReDF7D5erC35T /0BLQc8rOr+q+N7trfWcncA7pB0iiLuutn5qNA/7Iek1GDYvzzMIsqVAxTWiJCaUc7Wm tlJbAL6xeHD/0EJkz9SbEtuR7KueWbnBzsZqh/Th+r3Oxzbej+XRYhT6t0DoPgqerwfd wZGWb29Q7hM1tmPAV7CM0gLM9mTkAzwLxBjULFP4U6tkAon5tJc/Hogkge3SH9eVDG2a gMU6EnBc0GY2NmIFC4WHopWuMcf9Bx1WWduRF59iVSVHeK6mO6ICOt96pzJTgEQhn8AK a45A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r0OIQdTP; 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 q25-20020a50cc99000000b0043d67a7dd61si2022321edi.179.2022.08.23.05.11.57; Tue, 23 Aug 2022 05:12:25 -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=r0OIQdTP; 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 S1354952AbiHWKdq (ORCPT + 99 others); Tue, 23 Aug 2022 06:33:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353437AbiHWKRY (ORCPT ); Tue, 23 Aug 2022 06:17:24 -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 5857180B7C; Tue, 23 Aug 2022 02:01:33 -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 AFE8661499; Tue, 23 Aug 2022 09:01:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5D17C433C1; Tue, 23 Aug 2022 09:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245292; bh=q8TQCf8SAtSSg0KTvYIsRTspUDo0nbDxlT1zhrAe5AI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r0OIQdTPYPao/fZE7o9Lq6bdd3XXQAs3Pea1G4ywO4+AcwJ5Ay5QufOn8ZOlN/BSX 2iH/FfBBLCd85bIU5mdoSoOjW28ydXRJnlzw+WvZi4+Sh3STo+4snewJI7I+Ty5Azz tmzv4LK4usV4EBEoKqr/kNx7tP2YNsFy0yQ3DZmQ= 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 4.19 005/287] wifi: mac80211_hwsim: add back erroneously removed cast Date: Tue, 23 Aug 2022 10:22:54 +0200 Message-Id: <20220823080100.447145203@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 @@ -3149,7 +3149,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);