mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
ieee1394: iso and async streams: s/g list fix
Torsten Kaiser wrote: > Looking that calltrace upwards, it seems replacing the > memset(dma->sglist,...) with sg_init_table(...) would fix the BUG_ON() > as that inits the SG_MAGIC. Tested-by: Torsten Kaiser <[email protected]> Signed-off-by: Stefan Richter <[email protected]>
This commit is contained in:
parent
b4f555081f
commit
9e66269d40
1 changed files with 1 additions and 2 deletions
|
|
@ -103,8 +103,7 @@ int dma_region_alloc(struct dma_region *dma, unsigned long n_bytes,
|
|||
goto err;
|
||||
}
|
||||
|
||||
/* just to be safe - this will become unnecessary once sglist->address goes away */
|
||||
memset(dma->sglist, 0, dma->n_pages * sizeof(*dma->sglist));
|
||||
sg_init_table(dma->sglist, dma->n_pages);
|
||||
|
||||
/* fill scatter/gather list with pages */
|
||||
for (i = 0; i < dma->n_pages; i++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue