diff options
author | Fea.Wang <fea.wang@sifive.com> | 2024-06-13 09:34:59 +0800 |
---|---|---|
committer | Edgar E. Iglesias <edgar.iglesias@amd.com> | 2024-06-17 21:01:46 +0200 |
commit | e6b45b6bb9ce721119857507a66768b06e8836a2 (patch) | |
tree | a1d1de35bcb5e6b2875ddd5ca68c4f0ba6198e61 /ui/sdl2-input.c | |
parent | 900536d3e97aed7fdd9cb4dadd3bf7023360e819 (diff) |
hw/dma: Enhance error handling in loading description
Loading a description from memory may cause a bus-error. In this
case, the DMA should stop working, set the error flag, and return
the failure value.
When calling the loading a description function, it should be noticed
that the function may return a failure value. Breaking the loop in this
case is one of the possible ways to handle it.
Signed-off-by: Fea.Wang <fea.wang@sifive.com>
Reviewed-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@amd.com>
Diffstat (limited to 'ui/sdl2-input.c')
0 files changed, 0 insertions, 0 deletions