diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-30 15:36:58 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-12-30 15:36:58 -0500 |
| commit | f39edadd1533713a5ed8ba31887ea6c93d137083 (patch) | |
| tree | 871ba2be5b4500c18a57e944fc954eb144d9ec9b /drivers | |
| parent | 7ea6600148c265b1fd53e521022b1d7aec81d974 (diff) | |
| parent | f5908267b67917b8cbd98b27fd2be9b5f62ec76f (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
hwrng: core - Fix double unlock in rng_dev_read
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/char/hw_random/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index e989f67bb61f..3d9c61e5acbf 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c | |||
| @@ -158,10 +158,11 @@ static ssize_t rng_dev_read(struct file *filp, char __user *buf, | |||
| 158 | goto out; | 158 | goto out; |
| 159 | } | 159 | } |
| 160 | } | 160 | } |
| 161 | out_unlock: | ||
| 162 | mutex_unlock(&rng_mutex); | ||
| 163 | out: | 161 | out: |
| 164 | return ret ? : err; | 162 | return ret ? : err; |
| 163 | out_unlock: | ||
| 164 | mutex_unlock(&rng_mutex); | ||
| 165 | goto out; | ||
| 165 | } | 166 | } |
| 166 | 167 | ||
| 167 | 168 | ||
