commit 65ea840afd508194b0ee903256162aa87e46ec30 upstream. In case of error, the function stratix10_svc_allocate_memory() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: e7eef1d763 ("fpga: add intel stratix10 soc fpga manager driver") Signed-off-by: Zheng Yongjun <[email protected]> Reviewed-by: Russ Weight <[email protected]> Cc: [email protected] Acked-by: Xu Yilun <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Xu Yilun <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
e7eef1d763