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

From: Mark Brown

Date: Wed Aug 26 2026 - 09:35:12 EST


On Tue, Aug 25, 2026 at 04:58:59PM +0800, Yang Zi wrote:
> max8660_probe() dereferences pdata->num_subdevs 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