#2074: [SD] Need to check if the block count is > 0 in s3c24xx_mmci.c
---------------------+------------------------------------------------------
Reporter: zxombie | Owner: openmoko-devel
Type: defect | Status: new
Priority: normal | Milestone:
Component: unknown | Version:
Severity: normal | Keywords:
Blockedby: | Reproducible:
Blocking: |
---------------------+------------------------------------------------------
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.
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/2074>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
_______________________________________________
devel mailing list
[email protected]
https://lists.openmoko.org/mailman/listinfo/devel