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

----- Forwarded message from scan-admin@coverity.com -----
Date: Mon, 10 May 2021 21:17:32 +0000 (UTC) From: scan-admin@coverity.com To: tom.rini@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.
1 new defect(s) introduced to Das U-Boot found with Coverity Scan. 3 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 1 of 1 defect(s)
** CID 331544: Null pointer dereferences (REVERSE_INULL) /drivers/core/ofnode.c: 317 in ofnode_get_addr_size_index()
________________________________________________________________________________________________________ *** CID 331544: Null pointer dereferences (REVERSE_INULL) /drivers/core/ofnode.c: 317 in ofnode_get_addr_size_index() 311 uint flags; 312 313 prop_val = of_get_address(ofnode_to_np(node), index, &size64, 314 &flags); 315 if (!prop_val) 316 return FDT_ADDR_T_NONE;
CID 331544: Null pointer dereferences (REVERSE_INULL) Null-checking "size" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
317 if (size) 318 *size = size64; 319 320 ns = of_n_size_cells(ofnode_to_np(node)); 321 322 if (IS_ENABLED(CONFIG_OF_TRANSLATE) &&
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
To manage Coverity Scan email notifications for "tom.rini@gmail.com", click https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
----- End forwarded message -----

Hi
Sorry, A null pointer detection is missing here, I will fix it later.
On May 13, 2021, at 6:30 AM, Tom Rini <trini@konsulko.commailto:trini@konsulko.com> wrote:
----- Forwarded message from scan-admin@coverity.commailto:scan-admin@coverity.com -----
Date: Mon, 10 May 2021 21:17:32 +0000 (UTC) From: scan-admin@coverity.commailto:scan-admin@coverity.com To: tom.rini@gmail.commailto:tom.rini@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.
1 new defect(s) introduced to Das U-Boot found with Coverity Scan. 3 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 1 of 1 defect(s)
** CID 331544: Null pointer dereferences (REVERSE_INULL) /drivers/core/ofnode.c: 317 in ofnode_get_addr_size_index()
________________________________________________________________________________________________________ *** CID 331544: Null pointer dereferences (REVERSE_INULL) /drivers/core/ofnode.c: 317 in ofnode_get_addr_size_index() 311 uint flags; 312 313 prop_val = of_get_address(ofnode_to_np(node), index, &size64, 314 &flags); 315 if (!prop_val) 316 return FDT_ADDR_T_NONE; CID 331544: Null pointer dereferences (REVERSE_INULL) Null-checking "size" suggests that it may be null, but it has already been dereferenced on all paths leading to the check. 317 if (size) 318 *size = size64; 319 320 ns = of_n_size_cells(ofnode_to_np(node)); 321 322 if (IS_ENABLED(CONFIG_OF_TRANSLATE) &&
________________________________________________________________________________________________________ To view the defects in Coverity Scan visit, https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
To manage Coverity Scan email notifications for "tom.rini@gmail.commailto:tom.rini@gmail.com", click https://u15810271.ct.sendgrid.net/ls/click?upn=HRESupC-2F2Czv4BOaCWWCy7my0P0...
----- End forwarded message -----
— Tom
-- Chen Guanqiao
participants (2)
-
Tom Rini
-
陈冠桥