Re: [PATCH v1] ASoC: imx-card: Add NULL check in imx_card_probe()

2025-04-05 Thread Mark Brown
On Tue, 01 Apr 2025 22:25:10 +0800, Henry Martin wrote: > devm_kasprintf() returns NULL when memory allocation fails. Currently, > imx_card_probe() does not check for this case, which results in a NULL > pointer dereference. > > Add NULL check after devm_kasprintf() to prevent this issue. > > >

[PATCH v1] ASoC: imx-card: Add NULL check in imx_card_probe()

2025-04-01 Thread Henry Martin
devm_kasprintf() returns NULL when memory allocation fails. Currently, imx_card_probe() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue. Fixes: aa736700f42f ("ASoC: imx-card: Add imx-card machine driver") Signe

Re: [PATCH v1] ASoC: imx-card: Add NULL check in imx_card_probe()

2025-04-01 Thread Frank Li
On Tue, Apr 01, 2025 at 10:25:10PM +0800, Henry Martin wrote: > devm_kasprintf() returns NULL when memory allocation fails. Currently, > imx_card_probe() does not check for this case, which results in a NULL > pointer dereference. > > Add NULL check after devm_kasprintf() to prevent this issue. > >