Skip to content
Commit 4fd9ac6b authored by Dinghao Liu's avatar Dinghao Liu Committed by Andy Shevchenko
Browse files

Platform: OLPC: Fix memleak in olpc_ec_probe



When devm_regulator_register() fails, ec should be
freed just like when olpc_ec_cmd() fails.

Fixes: 231c0c21 ("Platform: OLPC: Add a regulator for the DCON")
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 9123e3a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment