Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0781f7b1 authored by Shilpa Mamidi's avatar Shilpa Mamidi
Browse files

msm:pproc:Freed the vpe prameters to avoid memleak



The vpe parameters process_frame and event_cmd are
freed in failure case to avoid memleak.

Change-Id: I5391f7053ae1e801f4ac40cece9786ea0c9c076d
Signed-off-by: default avatarShilpa Mamidi <shilpam@codeaurora.org>
parent e6e3e7ae
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2015 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1382,6 +1382,8 @@ static long msm_vpe_subdev_ioctl(struct v4l2_subdev *sd,
				process_frame,
				sizeof(struct msm_vpe_frame_info_t))) {
					mutex_unlock(&vpe_dev->mutex);
					kfree(process_frame);
					kfree(event_qcmd);
					return -EINVAL;
		}