Skip to content

Commit

Permalink
Merge pull request #34 from reinauer/coverity_24_04
Browse files Browse the repository at this point in the history
Coverity fixes 2024-04-14
  • Loading branch information
reinauer authored Apr 15, 2024
2 parents c8ba362 + 1c68353 commit 9ba460b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions a4091.c
Original file line number Diff line number Diff line change
Expand Up @@ -3715,7 +3715,7 @@ test_bus_access(uint extended)
ptr[0], ptr[1], ptr[2], ptr[3]);
printf(" Running again %02x\n", get_ncrreg32(REG_SCRATCH));
Delay(1);
if ((rc2 = execute_script(saddr1, 0x10, 0)) != 0) {
if ((rc2 = execute_script(saddr0, 0x10, 0)) != 0) {
printf(" Failed: %d\n", rc2);
} else {
got0 = get_ncrreg32(REG_SCRATCH);
Expand Down Expand Up @@ -4368,14 +4368,15 @@ test_dma_copy(uint extended)
FreeMem(bf_mem, BFADDR_SIZE);
if (bf_addr != NULL)
FreeMem(bf_addr, BFADDR_SIZE);
FreeMem(dst_buf, dma_len * 3);
fail_dst_alloc:
FreeMem(src, dma_len);

fail_src_alloc:
FreeMem((APTR *)src_backup, dma_len);

fail_src_backup_alloc:
FreeMem(src, dma_len);

fail_dst_alloc:
FreeMem(dst_buf, dma_len * 3);

fail_src_alloc:
show_test_state("DMA copy:", rc);
return (rc);
}
Expand Down

0 comments on commit 9ba460b

Please sign in to comment.