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

Hey all,
Just a minor issue to fix from the latest scan. A fixes tag on 19f7a34a4642e25aa8b80c6d75129fe7848a158d would be appropriate. Thanks!
----- Forwarded message from scan-admin@coverity.com -----
Date: Tue, 14 Sep 2021 23:10:58 +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 338845: Null pointer dereferences (REVERSE_INULL) /drivers/mmc/mmc.c: 3085 in mmc_init_device()
________________________________________________________________________________________________________ *** CID 338845: Null pointer dereferences (REVERSE_INULL) /drivers/mmc/mmc.c: 3085 in mmc_init_device() 3079 return ret; 3080 } 3081 3082 m = mmc_get_mmc_dev(dev); 3083 m->user_speed_mode = MMC_MODES_END; /* Initialising user set speed mode */ 3084
CID 338845: Null pointer dereferences (REVERSE_INULL) Null-checking "m" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
3085 if (!m) 3086 return 0; 3087 if (m->preinit) 3088 mmc_start_init(m); 3089 3090 return 0;
________________________________________________________________________________________________________ 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 -----
participants (1)
-
Tom Rini