mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
swiotlb: print a warning when the swiotlb is full
Signed-off-by: Stefano Stabellini <[email protected]> Changes in v7: - use dev_warn instead of pr_warn.
This commit is contained in:
parent
6cf0546362
commit
783d028104
2 changed files with 2 additions and 0 deletions
|
|
@ -542,6 +542,7 @@ xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl,
|
|||
sg->length,
|
||||
dir);
|
||||
if (map == SWIOTLB_MAP_ERROR) {
|
||||
dev_warn(hwdev, "swiotlb buffer is full\n");
|
||||
/* Don't panic here, we expect map_sg users
|
||||
to do proper error handling. */
|
||||
xen_swiotlb_unmap_sg_attrs(hwdev, sgl, i, dir,
|
||||
|
|
|
|||
Loading…
Reference in a new issue