]> git.ipfire.org Git - thirdparty/u-boot.git/commit
bloblist: fix pointer comparison in bloblist_apply_blobs()
authorMichal Simek <michal.simek@amd.com>
Wed, 29 Apr 2026 06:29:53 +0000 (08:29 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 4 May 2026 18:58:44 +0000 (12:58 -0600)
commit0fd32094c04ff736977d88dea02c299a75965c4f
tree3f96b75f9535ce87558e562918da54d4f4bf2864
parent7dd93524eacfec8512700056fcb54a4ba5c8fd8b
bloblist: fix pointer comparison in bloblist_apply_blobs()

The rec_from_blob() function returns a pointer, but the code was
comparing it using "rec <= 0" which is incorrect for pointer types.
Pointers should be compared using "== NULL" or "!= NULL".

Addresses-Coverity-ID: CID 645841: Incorrect expression (BAD_COMPARE)
Signed-off-by: Michal Simek <michal.simek@amd.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Raymond Mao <raymondmaoca@gmail.com>
common/bloblist.c