]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Check uclass_get() return value when dumping
authorSimon Glass <sjg@chromium.org>
Fri, 14 May 2021 01:39:24 +0000 (19:39 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 15 Jul 2021 22:42:05 +0000 (18:42 -0400)
commit9dec2c1f03922977725d14ebc89fdc05b1f32511
treeb36ad43c0f0c822303e5b513fda2b16f0e5da1cc
parent37e79ee0e8f93674a6247cf5c973920f18fd3578
dm: core: Check uclass_get() return value when dumping

Update dm_dump_drivers() to use the return value from uclass_get() to
check the validity of uc. This is equivalent and should be more attractive
to Coverity.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 316601)
drivers/core/dump.c