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

From: Vladimir Oltean
Date: Sat Jun 05 2021 - 21:03:48 EST


On Sat, Jun 05, 2021 at 10:31:48AM +0800, 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>
> ---

Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>