commit | 69bf372bcb5c207ebaca6c480992cbdfd33a5b1c | [log] [tgz] |
---|---|---|
author | deqi.hu <deqi.hu@siengine.com> | Wed Mar 10 15:38:39 2021 +0800 |
committer | deqi.hu <deqi.hu@siengine.com> | Wed Mar 17 11:04:21 2021 +0100 |
tree | c079d5006763c702ad28a4de02dca49656738cd6 | |
parent | 22dfacd57faa566bff961c7c599a84b3c9d30ea9 [diff] |
mmc:prevent accessing to the released space in case of wrong usage 1.Since in mmc_init, the most of mmc_device_info passed in are temporary variables. In order to avoid referencing the released space on the stack when maybe MISUSED, it`s better to use global variables to store mmc_device_info in mmc.c 2.Delete redundant; Signed-off-by: deqi.hu@siengine.com Change-Id: I51ae90e7f878b19b4963508b3f7ec66339015ebc