Staging: dream: fix memory leak in camera error path
authorPavel Machek <pavel@ucw.cz>
Sat, 21 Nov 2009 08:16:47 +0000 (09:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:26 +0000 (16:42 -0800)
commitccf972bd6bcb35ebd38e0a530c86088e45102aa4
tree454a16f4ae35c9f8022e58c1e8f7875b1f49dae4
parente79753edf88d858a3783c946c12cc4726f6590f6
Staging: dream: fix memory leak in camera error path

cppcheck found that ctrl_pmsm is leaked if the open operation fails.

Signed-off-by: Eric Sesterhenn <eric.sesterhenn@lsexperts.de>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/dream/camera/msm_camera.c