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

Commit a3762ca3 authored by Lior Barenboim's avatar Lior Barenboim
Browse files

msm: ultrasound: fix input device memory leak



Error handling in touch screen input device creation did not
free the allocated input device, creating a possible memory leak.

This change adds a call to input_device_free() to correct this.

Change-Id: I564d8deebf30d01c95f8f43de01be2bff0ddf75d
Signed-off-by: default avatarLior Barenboim <liorb@codeaurora.org>
parent d0467af9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
/* Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
/* Copyright (c) 2011-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
@@ -214,6 +214,7 @@ static int prepare_tsc_input_device(uint16_t ind,
		__func__,
		input_info->req_buttons_bitmap,
		max_buttons_bitmap);
		input_free_device(in_dev);
		return -EINVAL;
	}