Messages in this thread | | | Date | Mon, 14 Feb 2022 15:00:01 +0300 | Subject | Re: [PATCH] iommu/ipmmu-vmsa: Check for error num after setting mask | From | Nikita Yushchenko <> |
| |
> Adding more potential reviewers. > > On Thu, Jan 06, 2022 at 10:43:02AM +0800, Jiasheng Jiang wrote: >> Because of the possible failure of the dma_supported(), the >> dma_set_mask_and_coherent() may return error num. >> Therefore, it should be better to check it and return the error if >> fails.
Indeed, most uses of dma_set_mask_and_coherent() in the kernel do check return value.
Reviewed-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
| |