Ticket #2074 (new defect)

Opened 11 years ago

Last modified 11 years ago

[SD] Need to check if the block count is > 0 in s3c24xx_mmci.c

Reported by: zxombie Owned by: openmoko-devel
Priority: normal Milestone:
Component: unknown Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

In host/qemu-neo1973/hw/s3c24xx_mmci.c s->blknum_cnt gets decremented then checked if it is 0.

If there are no more blocks to read s->blknum_cnt will be set to 0. It will then be set to -1 causing reads to fail as the sd state is incorrect.

Attachments

openmoko-sd.patch (593 bytes) - added by zxombie 11 years ago.
Patch to check if s->blknum_cnt > 0

Change History

Changed 11 years ago by zxombie

Patch to check if s->blknum_cnt > 0

comment:1 Changed 11 years ago by zxombie

I forgot to mention this is in Qemu

Note: See TracTickets for help on using tickets.