aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNavid Emamdoost <[email protected]>2019-10-21 18:52:49 +0000
committerDaniel Vetter <[email protected]>2019-10-23 18:57:05 +0000
commit29cd13cfd7624726d9e6becbae9aa419ef35af7f (patch)
tree0c6dd9aa262e4c84b7d03b34ee89534f88216952 /net/unix/af_unix.c
parentpanfrost: Properly undo pm_runtime_enable when deferring a probe (diff)
downloadkernel-29cd13cfd7624726d9e6becbae9aa419ef35af7f.tar.gz
kernel-29cd13cfd7624726d9e6becbae9aa419ef35af7f.zip
drm/v3d: Fix memory leak in v3d_submit_cl_ioctl
In the impelementation of v3d_submit_cl_ioctl() there are two memory leaks. One is when allocation for bin fails, and the other is when bin initialization fails. If kcalloc fails to allocate memory for bin then render->base should be put. Also, if v3d_job_init() fails to initialize bin->base then allocated memory for bin should be released. Fixes: a783a09ee76d ("drm/v3d: Refactor job management.") Signed-off-by: Navid Emamdoost <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions