]> Git Repo - linux.git/commit - drivers/mfd/wm8350-core.c
mfd: Fix wrong wm8350-core kfree in error path
authorAxel Lin <[email protected]>
Wed, 4 Aug 2010 01:54:21 +0000 (09:54 +0800)
committerSamuel Ortiz <[email protected]>
Thu, 12 Aug 2010 09:28:08 +0000 (11:28 +0200)
commit8c46cf30f72550da22065941c3e0f862dcbb90a6
treecb42705afed892e1353afbcdca84b6c6b3d427a8
parentfccbd21f333638a33efb6fc65fff58d1bc2a90bd
mfd: Fix wrong wm8350-core kfree in error path

This patch includes below fixes:
1. fix wm8350_create_cache error path
   make sure wm8350->reg_cache is freed in error path.
2. fix wm8350_device_init error path
   no need to kfree(wm8350->reg_cache) in the case of goto out.

Signed-off-by: Axel Lin <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
drivers/mfd/wm8350-core.c
This page took 0.044265 seconds and 4 git commands to generate.