Commit 925a6f0b authored by Linus Torvalds's avatar Linus Torvalds

Merge tag 'hwspinlock-3.6-fix' of git://

Pull hwspinlock fix from Ohad Ben-Cohen:
 "A single hwspinlock fix by Wei Yongjun, which prevents potential NULL

* tag 'hwspinlock-3.6-fix' of git://
  hwspinlock/core: move the dereference below the NULL test
parents b161dfa6 e352614c
......@@ -552,7 +552,7 @@ EXPORT_SYMBOL_GPL(hwspin_lock_request_specific);
int hwspin_lock_free(struct hwspinlock *hwlock)
struct device *dev = hwlock->bank->dev;
struct device *dev;
struct hwspinlock *tmp;
int ret;
......@@ -561,6 +561,7 @@ int hwspin_lock_free(struct hwspinlock *hwlock)
return -EINVAL;
dev = hwlock->bank->dev;
/* make sure the hwspinlock is used */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment