fix a bug that read members in non-existent functions
This commit is contained in:
parent
7d7993f940
commit
755cde372c
|
@ -6,7 +6,8 @@
|
||||||
* Change Logs:
|
* Change Logs:
|
||||||
* Date Author Notes
|
* Date Author Notes
|
||||||
* 2012-01-13 weety first version
|
* 2012-01-13 weety first version
|
||||||
* 2024-04-04 Evlers fix an issue where repeated remove of card resulted in assertions
|
* 2024-07-04 Evlers fix an issue where repeated remove of card resulted in assertions
|
||||||
|
* 2024-07-05 Evlers fix a bug that read members in non-existent functions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <drivers/mmcsd_core.h>
|
#include <drivers/mmcsd_core.h>
|
||||||
|
@ -1030,8 +1031,7 @@ static void sdio_irq_thread(void *param)
|
||||||
struct rt_sdio_function *func = card->sdio_function[i];
|
struct rt_sdio_function *func = card->sdio_function[i];
|
||||||
if (!func)
|
if (!func)
|
||||||
{
|
{
|
||||||
mmcsd_dbg("pending IRQ for "
|
mmcsd_dbg("pending IRQ for non-existant function\n");
|
||||||
"non-existant function %d\n", func->num);
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
else if (func->irq_handler)
|
else if (func->irq_handler)
|
||||||
|
|
Loading…
Reference in New Issue