[PATCH -next] drm/vmwgfx: Fix return value check in vmw_setup_pci_resources()

Zack Rusin zackr at vmware.com
Fri May 14 18:33:31 UTC 2021


On 5/14/21 4:28 AM, Qiheng Lin wrote:
> In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR().
> The IS_ERR() test in the return value check should be replaced with NULL test.
> After that, the error code -ENOMEM should be returned.
> 
> Reported-by: Hulk Robot <hulkci at huawei.com>
> Signed-off-by: Qiheng Lin <linqiheng at huawei.com>

Looks good. Thank you. I'll push it with some other fixes via drm-misc-next.

z


More information about the dri-devel mailing list