Re: [PATCH AUTOSEL 5.10 01/93] leds: tlc591xx: fix return value check in tlc591xx_probe()

From: Pavel Machek
Date: Mon Jul 12 2021 - 17:49:01 EST


Hi!

> [ Upstream commit ee522bcf026ec82ada793979c3a906274430595a ]
>
> After device_get_match_data(), tlc591xx is not checked, add
> check for it and also check np after dev_of_node.
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
> Signed-off-by: Pavel Machek <pavel@xxxxxx>
> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

This was found by code review, is not known to cause real problems,
and received very little testing. Please drop it from stable.

Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany

Attachment: signature.asc
Description: Digital signature