diff options
author | Yang Yingliang <[email protected]> | 2023-08-19 10:37:16 +0800 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2023-08-21 08:50:33 -0600 |
commit | 2d12d18f14d9e6e2dcbc3e5942d718e6d4e028a5 (patch) | |
tree | 92d3edd27ed6bc1b8b331f2d17fcd564c29ddd21 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 06d220f13b1f05488f780c23065e765acab5ce56 (diff) |
vfio/pds: fix return value in pds_vfio_get_lm_file()
anon_inode_getfile() never returns NULL pointer, it will return
ERR_PTR() when it fails, so replace the check with IS_ERR().
Fixes: bb500dbe2ac6 ("vfio/pds: Add VFIO live migration support")
Signed-off-by: Yang Yingliang <[email protected]>
Reviewed-by: Brett Creeley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions