Page MenuHomeFreeBSD

linuxkpi: Correct nents passed to dma_{un,}map_sg_attrs
Needs ReviewPublic

Authored by zishun.yi.dev_gmail.com on Thu, Jun 25, 1:28 PM.

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

In linux docs, there is:

void
dma_unmap_sg(struct device *dev, struct scatterlist *sg,
             int nents, enum dma_data_direction direction)
Note: <nents> must be the number you passed in, not the number of DMA
address entries returned.

but I think currently nents is equal to orig_nents in linuxkpi. So It's
just a trivial fix.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 74247
Build 71130: arc lint + arc unit