]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/qaic: Drop the reference to BO in error path of create BO IOCTL
authorPranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Fri, 8 Dec 2023 16:34:54 +0000 (09:34 -0700)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 15 Dec 2023 18:01:12 +0000 (11:01 -0700)
commitce5fed9aa0f6ff951bc1ef02f274875e67f070d2
treeb23d9b5afedb04bc18baa2dfe6539c36318f5cd9
parentfbd60a67f4975d6bad25d9d504055fae8c1c27b7
accel/qaic: Drop the reference to BO in error path of create BO IOCTL

Do not free BO explicitly in error path, just drop its reference, cleanup
will be taken care by DRM as we have registered for ->free() callback.
This patch makes sure that there is only one code path for BO to be freed.

Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231208163457.1295993-5-quic_jhugo@quicinc.com
drivers/accel/qaic/qaic_data.c