mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 22:02:02 +00:00
Documentation/DMA-API-HOWTO.txt: minor grammar corrections
Signed-off-by: Shuah Khan <shuah.khan@hp.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
b88a105802
commit
be62bc4100
1 changed files with 4 additions and 3 deletions
|
@ -488,9 +488,10 @@ will invoke the generic mapping error check interface. Doing so will ensure
|
||||||
that the mapping code will work correctly on all dma implementations without
|
that the mapping code will work correctly on all dma implementations without
|
||||||
any dependency on the specifics of the underlying implementation. Using the
|
any dependency on the specifics of the underlying implementation. Using the
|
||||||
returned address without checking for errors could result in failures ranging
|
returned address without checking for errors could result in failures ranging
|
||||||
from panics to silent data corruption. Couple of example of incorrect ways to
|
from panics to silent data corruption. A couple of examples of incorrect ways
|
||||||
check for errors that make assumptions about the underlying dma implementation
|
to check for errors that make assumptions about the underlying dma
|
||||||
are as follows and these are applicable to dma_map_page() as well.
|
implementation are as follows and these are applicable to dma_map_page() as
|
||||||
|
well.
|
||||||
|
|
||||||
Incorrect example 1:
|
Incorrect example 1:
|
||||||
dma_addr_t dma_handle;
|
dma_addr_t dma_handle;
|
||||||
|
|
Loading…
Reference in a new issue