Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2877575rwb; Mon, 15 Aug 2022 13:08:31 -0700 (PDT) X-Google-Smtp-Source: AA6agR7rbms9o7c4r/kjcbOgdKUQFU2Kq6w3oSZ0xH3C3Tg9H22TH010mi9qn3QOoAv/gH35B/6+ X-Received: by 2002:a17:90b:4acd:b0:1f4:cf0c:7a68 with SMTP id mh13-20020a17090b4acd00b001f4cf0c7a68mr19559824pjb.178.1660594110845; Mon, 15 Aug 2022 13:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594110; cv=none; d=google.com; s=arc-20160816; b=niDM7gR5Tr4EkQR2nptB7sCDMPnx8n2UiCfDABg4KjJ6rFtEmtcEVLsEZEZ4YBsQIx 74TYfvMa768bphwqbtQCR+obfltgGTCb6cPU6T3bs5NGUVQyYiMsbmhVEy3xU2k6YBgf obxNI/Kx/pl3jwkaB4xguu5ptRxFvtN3umLTJMEqYTYGIf/fAlhfVGsg0Q+jxX+C2XQz ahYH3u59zr8x10bL2Ue4TeLmK1lbcDQ44yASKzWXTAg4Nom6qnbgldB6QBYcZ4yO9mgo V0+oOrJkQHKUcw+dsd3l0J4Q+Tgcknsqy4iTxkUFheeEoCIB9mxpdIyvKTRS0Gc6yZix 0GBw== 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=Kkd0v0nXqnyKRIgZCsMI0I5Nenc70e2r32yK2INyNTE=; b=tzRnXr8oX7vJnrutlX4bA8X3DiKHqL9kXEtjM0WKLLqS0QaW+IRMtfs9MLlvF+BrHr 5WH6VnJJOvFFcwievThayAZavVDX01gpTViY/PEcLMZxfoI2/wJHO0ShLF1/Kap5mAhh D7IVwQ7D3dltPEgMxMkfyCgWOgK+vDwc/yf098KBLFaz8WtKx8rbm7X8xnOpPLkXm9u3 gD2Hm+m2SfiRudXQA6KNQo/4ZcdPwLIYcY8AIjwNTP0iQ6JzFQfbYmrqlQx2vx266gIL GNyxqIZ0F1SC13C4p1qvWPu2Ue0WXMwVfJRCKnzRG/9A8tMvmjBdxjsZ1zjXV6BZ2A53 7G4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HpCXns2z; 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 e128-20020a636986000000b0041b8d7f55e6si12390493pgc.727.2022.08.15.13.08.18; Mon, 15 Aug 2022 13:08:30 -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=HpCXns2z; 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 S233162AbiHOSNl (ORCPT + 99 others); Mon, 15 Aug 2022 14:13:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232755AbiHOSNf (ORCPT ); Mon, 15 Aug 2022 14:13:35 -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 13B0E2A252; Mon, 15 Aug 2022 11:13:34 -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 A202EB81063; Mon, 15 Aug 2022 18:13:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0560DC433C1; Mon, 15 Aug 2022 18:13:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587211; bh=QpFvSv5tEOSTMhJicikr1Svf17aM09RphEQgN5rhjmI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HpCXns2zhSMUHfhWEO1OpDjtlNc5xLzbSjL6kXdXVh1A9gN8OF0WzQpNyqGwES36X 1560SEKTkjNYDVFZcdh1lRcd23caYV8paaCxTB+CGRKbge13PXraLKxYxJ6sJaUvSl BTvtDZhp37JH1F7d8OBzZgRjl6zPI+z3Ed2apcCM= 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.15 013/779] wifi: mac80211_hwsim: add back erroneously removed cast Date: Mon, 15 Aug 2022 19:54:17 +0200 Message-Id: <20220815180337.755768092@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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 @@ -3614,7 +3614,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);