Thread (4 messages) 4 messages, 4 authors, 2012-08-23

Re: [PATCH 5/5] drivers/video/msm/mddi_client_nt35399.c: use devm_ functions

From: David Brown <hidden>
Date: 2012-08-09 17:38:58
Also in: kernel-janitors, linux-fbdev, lkml

On Fri, Aug 03, 2012 at 05:40:13PM +0200, Damien Cassou wrote:
From: Damien Cassou <redacted>

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: Damien Cassou <redacted>
Acked-by: David Brown <redacted>

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help