mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
Revert "nouveau/gsp: cleanup IS_ERR_OR_NULL in rm_alloc functions"
This is probably too risky, see the discussion here:
https://lists.freedesktop.org/archives/dri-devel/2026-May/570353.html
This reverts commit 281fe11c6c.
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Timur Tabi <ttabi@nvidia.com>
Link: https://patch.msgid.link/20260528192847.4077458-6-lyude@redhat.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
This commit is contained in:
parent
80fa10569b
commit
18178f2ac1
|
|
@ -373,7 +373,7 @@ nvkm_gsp_rm_alloc_get(struct nvkm_gsp_object *parent, u32 handle, u32 oclass, u3
|
|||
object->handle = handle;
|
||||
|
||||
argv = gsp->rm->api->alloc->get(object, oclass, argc);
|
||||
if (IS_ERR(argv)) {
|
||||
if (IS_ERR_OR_NULL(argv)) {
|
||||
object->client = NULL;
|
||||
return argv;
|
||||
}
|
||||
|
|
@ -415,8 +415,8 @@ nvkm_gsp_rm_alloc(struct nvkm_gsp_object *parent, u32 handle, u32 oclass, u32 ar
|
|||
{
|
||||
void *argv = nvkm_gsp_rm_alloc_get(parent, handle, oclass, argc, object);
|
||||
|
||||
if (IS_ERR(argv))
|
||||
return PTR_ERR(argv);
|
||||
if (IS_ERR_OR_NULL(argv))
|
||||
return argv ? PTR_ERR(argv) : -EIO;
|
||||
|
||||
return nvkm_gsp_rm_alloc_wr(object, argv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user