aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorLu Baolu <[email protected]>2024-07-12 10:58:19 +0800
committerJason Gunthorpe <[email protected]>2024-07-12 09:51:25 -0300
commit595572aae3d0c3bf295ea759b74b948e7493a9ff (patch)
treed8e9ddc6d5d4d7d4f4ac5b31ce9ffbfc0b090996 /lib/memory-notifier-error-inject.c
parentd73cf5ff743b5a8de6fa20651baba5bd56ba98a3 (diff)
iommufd: Fix error pointer checking
Smatch static checker reported below warning: drivers/iommu/iommufd/fault.c:131 iommufd_device_get_attach_handle() warn: 'handle' is an error pointer or valid Fix it by checking 'handle' with IS_ERR(). Fixes: b7d8833677ba ("iommufd: Fault-capable hwpt attach/detach/replace") Link: https://lore.kernel.org/r/[email protected] Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/linux-iommu/[email protected]/ Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions