mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 10:31:33 -04:00
Revert "nouveau/gsp/rm: cleanup IS_ERR_OR_NULL in core implementation"
This is probably too risky, see the discussion here:
https://lists.freedesktop.org/archives/dri-devel/2026-May/570353.html
This reverts commit 67346c90ce.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Timur Tabi <ttabi@nvidia.com>
Link: https://patch.msgid.link/20260528192847.4077458-3-lyude@redhat.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
committed by
Danilo Krummrich
parent
ebddb00faa
commit
1a8117455d
@@ -35,7 +35,7 @@ r535_gsp_rpc_rm_free(struct nvkm_gsp_object *object)
|
||||
client->object.handle, object->handle);
|
||||
|
||||
rpc = nvkm_gsp_rpc_get(gsp, NV_VGPU_MSG_FUNCTION_FREE, sizeof(*rpc));
|
||||
if (WARN_ON(IS_ERR(rpc)))
|
||||
if (WARN_ON(IS_ERR_OR_NULL(rpc)))
|
||||
return -EIO;
|
||||
|
||||
rpc->params.hRoot = client->object.handle;
|
||||
@@ -60,7 +60,7 @@ r535_gsp_rpc_rm_alloc_push(struct nvkm_gsp_object *object, void *params)
|
||||
void *ret = NULL;
|
||||
|
||||
rpc = nvkm_gsp_rpc_push(gsp, rpc, NVKM_GSP_RPC_REPLY_RECV, sizeof(*rpc));
|
||||
if (IS_ERR(rpc))
|
||||
if (IS_ERR_OR_NULL(rpc))
|
||||
return rpc;
|
||||
|
||||
if (rpc->status) {
|
||||
|
||||
@@ -324,7 +324,7 @@ r535_gsp_msgq_recv(struct nvkm_gsp *gsp, u32 gsp_rpc_len, int *retries)
|
||||
u32 size;
|
||||
|
||||
rpc = r535_gsp_msgq_peek(gsp, sizeof(*rpc), info.retries);
|
||||
if (IS_ERR(rpc)) {
|
||||
if (IS_ERR_OR_NULL(rpc)) {
|
||||
kvfree(buf);
|
||||
return rpc;
|
||||
}
|
||||
@@ -333,7 +333,7 @@ r535_gsp_msgq_recv(struct nvkm_gsp *gsp, u32 gsp_rpc_len, int *retries)
|
||||
info.continuation = true;
|
||||
|
||||
rpc = r535_gsp_msgq_recv_one_elem(gsp, &info);
|
||||
if (IS_ERR(rpc)) {
|
||||
if (IS_ERR_OR_NULL(rpc)) {
|
||||
kvfree(buf);
|
||||
return rpc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user