diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2016-10-18 03:25:05 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-10-18 03:25:04 -0700 |
| commit | 240bddf76e2c7919692f562decb53ca268905bcf (patch) | |
| tree | 0642cd56249075451309121b122788eacd7423f8 | |
| parent | cfb87a7e1f6be53f633b4fcc03dab14fb5718a88 (diff) | |
| parent | f90fbfe1c57e4352b2deffdb569ff33705921029 (diff) | |
Merge "soc: qcom: Acquire mutex before checking for service"
| -rw-r--r-- | drivers/soc/qcom/service-notifier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/service-notifier.c b/drivers/soc/qcom/service-notifier.c index 504a3263253c..ab00eac7f633 100644 --- a/drivers/soc/qcom/service-notifier.c +++ b/drivers/soc/qcom/service-notifier.c @@ -605,8 +605,8 @@ void *service_notif_register_notifier(const char *service_path, int instance_id, if (!service_path || !instance_id || !nb) return ERR_PTR(-EINVAL); - service_notif = _find_service_info(service_path); mutex_lock(¬if_add_lock); + service_notif = _find_service_info(service_path); if (!service_notif) { service_notif = (struct service_notif_info *)add_service_notif( service_path, |
