Re: [PATCH v2 1/2] wwan: core: Avoid returning NULL from wwan_create_dev()
From: Sergey Ryazanov
Date: Fri Aug 06 2021 - 05:15:28 EST
On Fri, Aug 6, 2021 at 12:00 PM Andy Shevchenko
<andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> Make wwan_create_dev() to return either valid or error pointer,
> In some cases it may return NULL. Prevent this by converting
> it to the respective error pointer.
>
> Fixes: 9a44c1cc6388 ("net: Add a WWAN subsystem")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> ---
> v2: rewrote to return error pointer, align callers (Loic)
Acked-by: Sergey Ryazanov <ryazanov.s.a@xxxxxxxxx>