summaryrefslogtreecommitdiff
path: root/drivers/misc/Makefile
diff options
context:
space:
mode:
authorTomer Tayar <ttayar@habana.ai>2022-12-15 17:36:53 +0300
committerOded Gabbay <ogabbay@kernel.org>2023-01-26 11:56:22 +0300
commit9b3d9f917f81aed559d19377c11d6fac3db89fd7 (patch)
tree640657ae7bdd2acda6b1130687db481c2cac0208 /drivers/misc/Makefile
parent6bdb7bc990cbed81f703c4a265843f959359489c (diff)
downloadlinux-9b3d9f917f81aed559d19377c11d6fac3db89fd7.tar.xz
habanalabs: fix dma-buf release handling if dma_buf_fd() fails
The dma-buf private object is freed if a call to dma_buf_fd() fails, and because a file was already associated with the dma-buf in dma_buf_export(), the release op will be called and will use this object. Mark the 'priv' field as NULL in this case, and avoid accessing it from the release op. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/Makefile')
0 files changed, 0 insertions, 0 deletions