diff options
author | Wen Yang <[email protected]> | 2019-02-11 17:04:00 +0800 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2019-02-13 09:50:58 +0000 |
commit | 726dabfde6aa35a4f1508e235ae37edbbf9fbc65 (patch) | |
tree | bb3b882724ead67f86f37de53f39a25a790532f5 /lib/test_overflow.c | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) |
PCI: endpoint: functions: Use memcpy_fromio()/memcpy_toio()
Functions copying from/to IO addresses should use the
memcpy_fromio()/memcpy_toio() API rather than plain memcpy().
Fix the issue detected through the sparse tool.
Fixes: 349e7a85b25f ("PCI: endpoint: functions: Add an EP function to test PCI")
Suggested-by: Kishon Vijay Abraham I <[email protected]>
Signed-off-by: Wen Yang <[email protected]>
[[email protected]: updated log]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Acked-by: Kishon Vijay Abraham I <[email protected]>
CC: Lorenzo Pieralisi <[email protected]>
CC: Bjorn Helgaas <[email protected]>
CC: Gustavo Pimentel <[email protected]>
CC: Niklas Cassel <[email protected]>
CC: Greg Kroah-Hartman <[email protected]>
CC: Cyrille Pitchen <[email protected]>
CC: [email protected]
CC: [email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions