Am Montag, 24. Januar 2022, 18:41:27 CET schrieb John David Anglin: > On 2022-01-24 12:24 p.m., John David Anglin wrote: > > Faulting instruction is "ldw 18(r3),r24". Address in $r3 (and $r5) seems > > bad. Think the sglist argument > > to sba_unmap_sg() is bad. Don't have a clue as to why this might be. > Maybe try interchanging operands of following && > > while (sg_dma_len(sglist) && nents--) { > > so nents is checked first. But nents would be increased then even for the case that sg_dma_len() returns false, which may or may not be wanted.