aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-04-11 19:12:13 +0800
committerBorislav Petkov <[email protected]>2022-04-11 17:58:52 +0200
commite50abbf788c239d529f9ab81e325f8e8f8432c9d (patch)
treec9b84f157369ad9c3bc5ff0845790461ca3c651a /lib/mpi/mpi-sub-ui.c
parente720ea52e85c9d00cf8c5769795d0a3e585524f6 (diff)
virt: sevguest: Fix return value check in alloc_shared_pages()
If alloc_pages() fails, it returns a NULL pointer. Replace the wrong IS_ERR() check with the proper NULL pointer check. Fixes: fce96cf04430 ("virt: Add SEV-SNP guest driver") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Reviewed-by: Brijesh Singh <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions