Re: [PATCH] staging: greybus: audio: Check null pointer
From: Dan Carpenter
Date: Thu Jan 06 2022 - 05:28:41 EST
On Tue, Dec 28, 2021 at 08:50:22AM -0600, Alex Elder wrote:
>
> There is a chance that your simple return would "work"
No. Your original comment was correct. It has to "ret = -ENOMEM;
goto error;"
regards,
dan carpenter