[PATCH] hwspinlock/core: Fix unbalanced module_get on error path

2012-12-12 Thread Ido Yariv
In case pm_runtime_get_sync() fails, __hwspin_lock_request will exit without calling module_put. As a result, the module could never be removed. Fix this. Signed-off-by: Ido Yariv --- drivers/hwspinlock/hwspinlock_core.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[PATCH] hwspinlock/core: Fix unbalanced module_get on error path

2012-12-12 Thread Ido Yariv
In case pm_runtime_get_sync() fails, __hwspin_lock_request will exit without calling module_put. As a result, the module could never be removed. Fix this. Signed-off-by: Ido Yariv i...@wizery.com --- drivers/hwspinlock/hwspinlock_core.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-)