diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-05-25 08:49:51 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-12 11:27:17 +0200 |
commit | d281b80c46da8bae806c4ef5682187f07e35389d (patch) | |
tree | 96ff99c6359cdf53cd2e0e6d862bc5fab9f2e159 /sound/oss | |
parent | mfd: Fix led resource in 88pm860x (diff) | |
download | linux-d281b80c46da8bae806c4ef5682187f07e35389d.tar.xz linux-d281b80c46da8bae806c4ef5682187f07e35389d.zip |
mfd: Fix memory leak in ab3100_otp_probe
In current implementation, there is a memory leak if ab3100_otp_read fail.
And in the case of ab3100_otp_init_debugfs fail, it does not properly remove
sysfs entries.
This patch properly handle above failure cases.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'sound/oss')
0 files changed, 0 insertions, 0 deletions