diff options
author | Xiaoke Wang <[email protected]> | 2022-04-28 16:52:39 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-04-28 12:24:47 +0200 |
commit | bb5bdc5ab7f133ba6fd32657d2ac90039c561e48 (patch) | |
tree | 607433930f49e23ed9016a1222ba0accdb8802b1 /include/linux/fpga/fpga-mgr.h | |
parent | af2d861d4cd2a4da5137f795ee3509e6f944a25b (diff) |
iommu/msm: Add a check for the return of kzalloc()
kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it to
prevent potential wrong memory access.
Besides, to propagate the error to the caller, the type of
insert_iommu_master() is changed to `int`. Several instructions related
to it are also updated.
Signed-off-by: Xiaoke Wang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions