Re: [PATCH] regulator: max1586: Fix NULL pointer dereference in probe

From: Mark Brown

Date: Wed Aug 26 2026 - 09:37:13 EST


On Tue, Aug 25, 2026 at 05:00:42PM +0800, Yang Zi wrote:
> max1586_pmic_probe() dereferences pdata->v3_gain without first checking
> that platform data is available. When the device is instantiated without
> a device tree node and without platform data, pdata remains NULL and probe
> crashes with a NULL pointer dereference.

This doesn't apply against current code, please check and resend.

Attachment: signature.asc
Description: PGP signature