drm/msm: Defer fd_install in SUBMIT ioctl
[ Upstream commit f2285343 ] Avoid fd_install() until there are no more potential error paths, to avoid put_unused_fd() after the fd is made visible to userspace. Fixes: 68dc6c2d ("drm/msm: Fix submit error-path leaks") Reported-by:Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by:
Rob Clark <robin.clark@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/665363/ Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading