[scan-admin at coverity.com: New Defects reported by Coverity Scan for Das U-Boot]

Tom Rini trini at konsulko.com
Tue Nov 10 22:18:15 CET 2020


Sadly, when we eliminate defects it doesn't say which ones in an email.
-rc2 eliminated one defect and introduced these two new ones.

----- Forwarded message from scan-admin at coverity.com -----

Date: Mon, 09 Nov 2020 22:31:55 +0000 (UTC)
From: scan-admin at coverity.com
To: tom.rini at gmail.com
Subject: New Defects reported by Coverity Scan for Das U-Boot

Hi,

Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan.

2 new defect(s) introduced to Das U-Boot found with Coverity Scan.
1 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 2 of 2 defect(s)


** CID 313047:  Control flow issues  (DEADCODE)
/drivers/core/lists.c: 106 in bind_drivers_pass()


________________________________________________________________________________________________________
*** CID 313047:  Control flow issues  (DEADCODE)
/drivers/core/lists.c: 106 in bind_drivers_pass()
100     			dm_warn("No match for driver '%s'\n", entry->name);
101     			if (!result || ret != -ENOENT)
102     				result = ret;
103     		}
104     	}
105     
>>>     CID 313047:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach the expression "-11" inside this statement: "return result ? result : (m...".
106     	return result ? result : missing_parent ? -EAGAIN : 0;
107     }
108     
109     int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only)
110     {
111     	int result = 0;

** CID 313046:  Uninitialized variables  (UNINIT)
/test/dm/test-main.c: 202 in dm_test_main()


________________________________________________________________________________________________________
*** CID 313046:  Uninitialized variables  (UNINIT)
/test/dm/test-main.c: 202 in dm_test_main()
196     		 */
197     		if (!(test->flags & UT_TESTF_LIVE_TREE) &&
198     		    (!runs || dm_test_run_on_flattree(test))) {
199     			ut_assertok(dm_do_test(uts, test, false));
200     			runs++;
201     		}
>>>     CID 313046:  Uninitialized variables  (UNINIT)
>>>     Using uninitialized value "found".
202     		found++;
203     	}
204     
205     	if (test_name && !found)
206     		printf("Test '%s' not found\n", test_name);
207     	else


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yoA22WlOQ-2By3ieUvdbKmOyw68TMVT4Kip-2BBzfOGWXJ5yIiYplmPF9KAnKIja4Zd7tU-3Da1oJ_EEm8SbLgSDsaDZif-2Bv7ch8WqhKpLoKErHi4nXpwDNTsYOUgTY-2FyPoDZTSHwUzjSdopTJBj3nqeuoH6EmxKw4bdnFoAIzoVhtx0ddbDrK9rK3KXWgv-2Fr91EWwYn-2FbuIxmGoRCC1vVrTIiiS-2BeJSJN-2BAm6wStqFh31o-2B6yfb96-2FExHhDPXc860EDfuC4s6C3e7tpg2RzHHl-2BVIUN9ezOpqfmXzuXw-2FptMXHgCInxfd5Iw-3D

  To manage Coverity Scan email notifications for "tom.rini at gmail.com", click https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0qcxCbhZ31OYv50yped04pjJnmXOsUBtKYNIXxWeIHzDeopm-2BEWQ6S6K-2FtUHv9ZTk8qZbuzkkz9sa-2BJFw4elYDyedRVZOC-2ButxjBZdouVmTGuWB6Aj6G7lm7t25-2Biv1B-2B9082pHzCCex2kqMs-3D62m6_EEm8SbLgSDsaDZif-2Bv7ch8WqhKpLoKErHi4nXpwDNTsYOUgTY-2FyPoDZTSHwUzjSd4GW73bOCxFmNia7zoK3Oa4qB9-2BOuJcFplp02CIL-2B7HRGMgBx-2F2-2FpfhSyRpqj-2FZxPwBQ27l3roadNVk85oAbxGhcAf6bMfXb4BGV6Z7EGpfLe-2BlLR9a0mH6FT79NVGEnUb524AuEBT1KpEATUtbdFb2CgkRtf3b0mTZ7Y4y71adI-3D


----- End forwarded message -----

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201110/8e3bf2b2/attachment.sig>


More information about the U-Boot mailing list