aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2022-01-06 10:43:02 +0800
committerJoerg Roedel <jroedel@suse.de>2022-02-14 13:42:02 +0100
commit1fdbbfd5099f797a4dac05e7ef0192ba4a9c39b4 (patch)
tree60e552e38d4eaabc26a86b6f010d8d92cc8b45a1 /lib/mpi/mpi-bit.c
parent754e0b0e35608ed5206d6a67a791563c631cec07 (diff)
iommu/ipmmu-vmsa: Check for error num after setting mask
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. Fixes: 1c894225bf5b ("iommu/ipmmu-vmsa: IPMMU device is 40-bit bus master") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Reviewed-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Link: https://lore.kernel.org/r/20220106024302.2574180-1-jiasheng@iscas.ac.cn Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions