Re: [PATCH net-next] net: bcmgenet: check return value after calling platform_get_resource()

From: Florian Fainelli
Date: Mon Jun 07 2021 - 13:47:33 EST




On 6/7/2021 6:38 AM, Yang Yingliang wrote:
> It will cause null-ptr-deref if platform_get_resource() returns NULL,
> we need check the return value.
>
> Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>

Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian