Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156986335
D15889.id44037.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
963 B
Referenced Files
None
Subscribers
None
D15889.id44037.diff
View Options
Index: sys/cam/mmc/mmc_da.c
===================================================================
--- sys/cam/mmc/mmc_da.c
+++ sys/cam/mmc/mmc_da.c
@@ -818,6 +818,7 @@
struct mmc_data d;
memset(&cmd, 0, sizeof(cmd));
+ memset(&d, 0, sizeof(d));
memset(rawscr, 0, 8);
cmd.opcode = ACMD_SEND_SCR;
@@ -1258,13 +1259,13 @@
/* Find out if the card supports High speed timing */
if (mmcp->card_features & CARD_FEATURE_SD20) {
/* Get and decode SCR */
- uint32_t rawscr;
+ uint32_t rawscr[2];
uint8_t res[64];
- if (mmc_app_get_scr(periph, start_ccb, &rawscr)) {
+ if (mmc_app_get_scr(periph, start_ccb, rawscr)) {
CAM_DEBUG(periph->path, CAM_DEBUG_PERIPH, ("Cannot get SCR\n"));
goto finish_hs_tests;
}
- mmc_app_decode_scr(&rawscr, &softc->scr);
+ mmc_app_decode_scr(rawscr, &softc->scr);
if ((softc->scr.sda_vsn >= 1) && (softc->csd.ccc & (1<<10))) {
mmc_sd_switch(periph, start_ccb, SD_SWITCH_MODE_CHECK,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 7:49 PM (9 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33265589
Default Alt Text
D15889.id44037.diff (963 B)
Attached To
Mode
D15889: Correctly define rawscr so initializing it doesn't result in overwriting memory.
Attached
Detach File
Event Timeline
Log In to Comment