drivers/video/msm/mddi_client_nt35399.c: use devm_ functions
The various devm_ functions allocate memory that is released when a driver detaches. This patch replaces the use of kzalloc by devm_kzalloc. Additionally, this patch fixes a memory leak: some memory was allocated for 'panel' but not released when the subsequent call to setup_vsync fails. Signed-off-by: NDamien Cassou <damien.cassou@lifl.fr> Acked-by: NDavid Brown <davidb@codeaurora.org> Signed-off-by: NFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Showing
想要评论请 注册 或 登录