Hello Mark,

This series have two trivial fixes for the regulator core.

Patch #1 increments the reference count of the module that owns a
supply since the refcount is decremented on regulator unregister.

Patch #2 fixes a memory leak in a regulator_resolve_supply() error
path.

Changes in v2:
- Add patch that increments the supply's module refcount in set_supply().

Javier Martinez Canillas (2):
  regulator: core: Increase refcount for regulator supply's module
  regulator: core: Fix memory leak in regulator_resolve_supply()

 drivers/regulator/core.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to