Skip to content

Commit

Permalink
fix a bug that read members in non-existent functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Evlers authored and Rbb666 committed Jul 5, 2024
1 parent 7d7993f commit 755cde3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/drivers/sdio/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
* Change Logs:
* Date Author Notes
* 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>
Expand Down Expand Up @@ -1030,8 +1031,7 @@ static void sdio_irq_thread(void *param)
struct rt_sdio_function *func = card->sdio_function[i];
if (!func)
{
mmcsd_dbg("pending IRQ for "
"non-existant function %d\n", func->num);
mmcsd_dbg("pending IRQ for non-existant function\n");
goto out;
}
else if (func->irq_handler)
Expand Down

0 comments on commit 755cde3

Please sign in to comment.