Re: [PATCH -next] virt: sevguest: Fix return value check in alloc_shared_pages()

From: Brijesh Singh
Date: Mon Apr 11 2022 - 09:58:12 EST




On 4/11/22 06:12, Yang Yingliang wrote:
If alloc_pages() fails, it returns NULL pointer, replaces
IS_ERR() check with NULL pointer check.

Fixes: fce96cf04430 ("virt: Add SEV-SNP guest driver")
Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx>
---

Reviewed-by: Brijesh Singh <brijesh.singh@xxxxxxx>

thanks