[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250701113014.GA6278@unreal>
Date: Tue, 1 Jul 2025 14:30:14 +0300
From: Leon Romanovsky <leon@...nel.org>
To: Dawid Osuchowski <dawid.osuchowski@...ux.intel.com>
Cc: Jason Gunthorpe <jgg@...dia.com>, Stav Aviram <saviram@...dia.com>,
Andrew Lunn <andrew+netdev@...n.ch>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, linux-rdma@...r.kernel.org,
Mark Bloch <markb@...lanox.com>, netdev@...r.kernel.org,
Paolo Abeni <pabeni@...hat.com>, Saeed Mahameed <saeedm@...dia.com>,
Tariq Toukan <tariqt@...dia.com>
Subject: Re: [PATCH mlx5-next] net/mlx5: Check device memory pointer before
usage
On Mon, Jun 30, 2025 at 01:18:22PM +0200, Dawid Osuchowski wrote:
> On 2025-06-30 12:35 PM, Leon Romanovsky wrote:
> > From: Stav Aviram <saviram@...dia.com>
> >
> > Add a NULL check before accessing device memory to prevent a crash if
> > dev->dm allocation in mlx5_init_once() fails.
> >
> > Fixes: c9b9dcb430b3 ("net/mlx5: Move device memory management to mlx5_core")
> > Signed-off-by: Stav Aviram <saviram@...dia.com>
> > Signed-off-by: Leon Romanovsky <leonro@...dia.com>
>
> Given this is a fix, the net tree should be targeted instead of next.
This fix is mainly for RDMA and changes in net-next are by-product. The
current target is mlx5-next.
Thanks
>
> Best regards,
> Dawid
Powered by blists - more mailing lists