]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Do not leak init_data in tps65912_device_init()
authorJesper Juhl <jj@chaosbits.net>
Tue, 20 Sep 2011 21:13:06 +0000 (14:13 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 6 Oct 2011 14:44:02 +0000 (16:44 +0200)
commitdf49b5a5e6e067958c93f446234b5cdbb703f97a
tree49a844b3317bd8cddcbd9eb09d9284a2c92ca363
parentb2984b0353f81513f94fe7da27b1dcaee76ec4d1
mfd: Do not leak init_data in tps65912_device_init()

We neglect to free init_data on successful exit.  I also moved two
assignments to just before they are needed.  This avoids doing them in
case we hit an earlier error exit from the function.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Margarita Olaya Cabrera <magi@slimlogic.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tps65912-core.c