Article View: linux.kernel.netdev
Article #10400Re: [PATCH v2] net: wwan: iosm: drop redundant skb->data check in MUX DL decode
From: Andrew Lunn
Date: Tue, 03 Nov 2026 13:50
Date: Tue, 03 Nov 2026 13:50
32 lines
9367 bytes
9367 bytes
On Tue, Nov 03, 2026 at 07:11:01PM +0800, Fang Xieyan wrote:
> The skb passed to ipc_mux_dl_decode() through the current RX path
> always has a valid data pointer.
>
> The only caller, ipc_imem_dl_skb_process(), checks for a NULL skb
> before calling ipc_mux_dl_decode(). The skb is allocated through
> ipc_pcie_alloc_skb() -> ipc_pcie_alloc_local_skb() ->
> __netdev_alloc_skb(), which provides a valid data buffer on
> successful allocation. Allocation or DMA mapping failures return
> a NULL skb instead.
>
> Remove the redundant skb->data check.
>
> Suggested-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
> Reviewed-by: Guanglei Zhu <zhugl3@xiaopeng.com>
> Signed-off-by: Fang Xieyan <fangxy@xiaopeng.com>
> ---
> Changes in v2:
Please always start a new thread for a new version of the patch. The
CI system does not always pick up the patch and run it.
Please also read:
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html
Andrew
---
pw-bot: cr
Technical Details
Message-ID:
<d225d4ad-5ee2-4e48-8eba-99eca3b96283@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355660-linux-kernel-netdev=dewy.ruReferences:
<20261102081920.50288-1-fangxy@xiaopeng.com> <20261103111101.39235-1-fangxy@xiaopeng.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355660-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH v2] net: wwan: iosm: drop redundant skb->data check in MUX DL decode Date: Tue, 3 Nov 2026 14:50:46 +0100 Organization: Usenet Network Message-ID: <d225d4ad-5ee2-4e48-8eba-99eca3b96283@lunn.ch> References: <20261102081920.50288-1-fangxy@xiaopeng.com> <20261103111101.39235-1-fangxy@xiaopeng.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3179919"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:7bhQZcVW7NkNtQNA/UtUwXBS+H8= sha256:twjm/laWsaaFcqEtuq6nPGfxQnjyo35Ae6N3toeSwA0= sha1:pdhMwkAaXCZfdEW4BS3zGRN2JUY= sha256:2hUnTEI8T4xlVt8IwPMdHXyxJlFR2k+pnIltzXxO8PE= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id EEC361128B0; Tue, 3 Nov 2026 16:58:03 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.151 X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fxYWKFx-9XNG; Tue, 3 Nov 2026 16:57:59 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-355660-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id E33F01128BA; Tue, 3 Nov 2026 16:57:50 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id A4A9C60A633; Tue, 3 Nov 2026 13:51:54 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1793713861; b=QjYdV6NkNgqMW1VMcSkEsWoSAjgoBl4Jgn8cz+ibtUsaxPzrGvnBj4UIXMRb8bIhXK9Y Ph1gNtbw9RdR8R/3vStyhtuRaB+uqaoznyMTep9+NJOGYHxzlYWiqZ67f+DbJYLgSNsxy fzTZ/sKodXXJd4qk6t0Kd7iqUjSuFVJAm+s10uMLCh6Z4MzXk0VRO5MWH8TJc5uWL/3ET Xq/g6tQXhnyxvfHNAFLUQhaL9jaULrrkmvAywIKlusjxye025UEHPr3/ZTbdAzBcPASG7 e7CT7THXhJPnFjusFa8m1s7OCVei7ZpyRibjxDiIRen4cO13nR3kIv3tgh9v1KY4x8Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793713861; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=GDNcNC3AhQlf0hAoy/6nNkz+jJ+YBSU86MsQYtwD23Q=; b=oBPh5HGY4XTLVg6yROIdDLloP7igdr0ZSbYcL9JfB9HtgknaluC4T5bJdD52mENCxzNK UePVBMaJQU/IGjqRKQauSbS3kwDw2twVGfFyrcm4zmzp1M/p+liqILP0sqMtiwhBonyXh ++0cLi2VR9An5UDM+merlBBh2kghFkZlu4JHDnB1201b/1Z083gUegYIJygu7P0wl8q55 /N49JV7JtC6qxHjl+yIM1KEm9YkWiG7vBiMay8ElMwXvGNbeZujT1Hqp8h9qKmt+tT56I sc2pG2NAsDEo9lcgX1nPK2kbavsHCjwJQ8fyz8IrcDp7lUQoZqasaCpjFgDz/R+46dw== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=umQl8pri; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7B0D6082BCD; Tue, 3 Nov 2026 13:51:01 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=umQl8pri X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793713856; b=WsRXNqRDZYket2meQbSl4CiJsMxATq42VF2g7XVaNOAVJ3smDlIYyiYe33ISJ9Ly5dVh s8PC5CEz7Rm9JD84t8hdUVlk6PC9+RFnYTt6hw1w+WdaQUSTqp7N6JosChGWIklq3uJwr ZC/FzyoyBFfdi843rYuN/qBC60jwbaJjYkBXf8xdORex4M3CpTG81JlUDJcIejZwLuxKX bVeKceHSS+CF97RMAkeCzrURPoLbya7Ae7ZUvEBp1Zd2bvL9Wq6M5gtqpw6K1o8QgRu4U DrrJK4B9JuLWdWALEm60q/QSLVA3AKMyb4y9BSwoT7WZeuzMLucQejsRSE2SaMc0XJw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793713856; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=GDNcNC3AhQlf0hAoy/6nNkz+jJ+YBSU86MsQYtwD23Q=; b=OxtckYQ4xjEurNUybGYqNQYOKb/UcaPmzLRxk9AJ/vJ+z+6fM2wstAMeonpQxmjRjjGG PMVnqAoKQYZDXxGSW7PeV7CQjNhYJ3GqowXnyt/oiIzYzNa2eUrvS5TTwwI15PBuaP/G/ q91xl9MTxoXDVvO6py0X+QwKOx0T8nCAbjVFcoXkipYrLBfaGrFjagWy4BMpqdV1FoOIk G/ba57sQZGAzTIr1e4GqsgArPWrNXfoiHfu1dx8j7DGkwaB8lMgtX4STTfy/nsb95UD6I d8KgPiSv1V4H3uXkMoKVGPipoNSxHcrCrCzDrVyKWwnyMkNho0lk9JmvJWwmzot4B3Q== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=umQl8pri; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 692E5606EE86; Tue, 3 Nov 2026 13:50:55 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 692E5606EE86 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=GDNcNC3AhQlf0hAoy/6nNkz+jJ+YBSU86MsQYtwD23Q=; b=umQl8priBMMRCgcPuDSD3UKeH6 vSZRzpTPmnaucDFmasy3DXPCGRjm8t+7gL5xVAvJUPfrAEkiH/zM/RoAM9ujqF6tIQDmpswoKpq1u awL744svSvpXj5DpWOf6JBR0yd7VF5WtlEUMRI+VzbDo8w3ic6JoI37OhNIefyrkp2SU=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xOEuU-00E4Sq-BW; Tue, 03 Nov 2026 14:50:46 +0100 X-Cc: Loic Poulain <loic.poulain@oss.qualcomm.com>, Sergey Ryazanov <ryazanov.s.a@gmail.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Johannes Berg <johannes@sipsolutions.net>, Guanglei Zhu <zhugl3@xiaopeng.com> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261103111101.39235-1-fangxy@xiaopeng.com>