Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3085010rwb; Mon, 15 Aug 2022 17:45:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR74QyUuMF4YQdtrO++NIduGopaz1F9y7004C4/VaguwMVxW3BQ7UTUjJdXSURHEldMpffB7 X-Received: by 2002:a17:907:948f:b0:731:3f2e:8916 with SMTP id dm15-20020a170907948f00b007313f2e8916mr12137759ejc.442.1660610743382; Mon, 15 Aug 2022 17:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660610743; cv=none; d=google.com; s=arc-20160816; b=L3FwPawceiBiVL9MyrAziSCXQCOfCHGrMDddPfs9iAys51yWARmO2muoegh+gvpFqw jpoOp8DZiRTKyhsq0ZCmBlfPnHqj4sWnNPncQIC6vGfua1mh7h3GfOzzQPDAu/NrP0hL u756Tnb3mEBims+38CJwhQk9tBuwcdSVELcqYCFabqlPdlSWgSy0FOhKjaSkry3Mpauh ofZ1U9aXX9wIZU7VxRx1Y+fY7S1KUKJB2MbLLIr4XJaOPxiN/BxmSVMc7Iya+FCYBaUj kT30pW3dS7AnUpFwE8Od/0cXks60EuK1nl43uYfz7L/hifJOWrN4yrniAuPpWRbPe/8A qBng== 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=mIxeum10Vo05ahRr/+hxz26bSDG/YXbpXbkKTgjQdwE=; b=1BM6cfcyajdP7gA3gj1sUI3oEs2Yi1niwGaXTyRuGzjqAPzIsoxjmksfwn7TkvZm9v Q2QiGP8dE21pt2dSMoZpKfBSLo83WU20FZ2sEL5+VrpXB09OJw7JyIJ018a9jcrjbcN4 S9OuHHBB8RxgWLgRO5FvH8FtqvcCQJS976XReRcN2Tofl8XRsxiMeDJyUjxRQolPtsMQ eb5K7ewfVz2Uvrs4P6Fxgpd/BMxHw+yx1VY4Y6AT6PrHAG4owSnh7zR1hTKHp2cstNnl sxY5oB5W6SWy/EChiStm6oc9iKu+4BkrAlX9SvlvyXTxoe/uIH5uvBaw8WbApeTZpPEH 9y/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=on8VjEGG; 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 o22-20020a170906975600b007384c1db86fsi3810001ejy.60.2022.08.15.17.45.18; Mon, 15 Aug 2022 17:45:43 -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=on8VjEGG; 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 S1349998AbiHOVtb (ORCPT + 99 others); Mon, 15 Aug 2022 17:49:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349956AbiHOVq5 (ORCPT ); Mon, 15 Aug 2022 17:46:57 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A10FB31DF8; Mon, 15 Aug 2022 12:30:36 -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 ams.source.kernel.org (Postfix) with ESMTPS id D8BD4B8112E; Mon, 15 Aug 2022 19:30:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16C58C433C1; Mon, 15 Aug 2022 19:30:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660591833; bh=hFyo2XgHTNhpFAos2x6onS2Xb8rlO70wxV1epeC4aZ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=on8VjEGGO1/dbAfOhkXNRBg9TNrBeL40Xa3iPymNG3zQzn24obRsFCrtAU6QVqzZN eGy/t5pBVWcAr5J5Mmmme6Oml3JRCQlM3JGsQ6OOejjG0jBS3MaeUILUcCompZIjsO G0bVQQtr7VaEvL630yuCEcssIgm8M/2r9Q656EiE= 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.19 0015/1157] wifi: mac80211_hwsim: add back erroneously removed cast Date: Mon, 15 Aug 2022 19:49:31 +0200 Message-Id: <20220815180440.065132446@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 @@ -4112,7 +4112,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);