diff options
author | Eric Engestrom <[email protected]> | 2019-08-26 15:42:32 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-09-04 00:18:37 +0100 |
commit | c4969b0a25982505dd784257d7c12f1abe8b2180 (patch) | |
tree | c15208fefe776c67783f6e94fa068f4aa99c182e /src/freedreno/drm-shim | |
parent | 7abf65aedc679069b794fddfa6feafa68d36d06a (diff) |
freedreno/drm-shim: fix mem leak
Fixes: 494ecef6b42198ab6c3e ("freedreno: Add support for drm-shim.")
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/freedreno/drm-shim')
-rw-r--r-- | src/freedreno/drm-shim/freedreno_noop.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/freedreno/drm-shim/freedreno_noop.c b/src/freedreno/drm-shim/freedreno_noop.c index 66bb53dc5d3..6a3fbb7b67f 100644 --- a/src/freedreno/drm-shim/freedreno_noop.c +++ b/src/freedreno/drm-shim/freedreno_noop.c @@ -84,14 +84,15 @@ msm_ioctl_gem_info(int fd, unsigned long request, void *arg) switch (args->info) { case MSM_INFO_GET_OFFSET: args->value = drm_shim_bo_get_mmap_offset(shim_fd, bo); - return 0; + break; case MSM_INFO_GET_IOVA: args->value = msm_bo(bo)->offset; - return 0; + break; case MSM_INFO_SET_NAME: - return 0; + break; default: fprintf(stderr, "Unknown DRM_IOCTL_MSM_GEM_INFO %d\n", args->info); + drm_shim_bo_put(bo); return -1; } |