2009-03-31 23:35:56

by Chris Wright

[permalink] [raw]
Subject: [patch 35/45] Add a missing unlock_kernel() in raw_open()

-stable review patch. If anyone has any objections, please let us know.
---------------------

From: Dan Carpenter <[email protected]>

upstream commit: 996ff68d8b358885c1de82a45517c607999947c7

Cc: [email protected]
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Signed-off-by: Chris Wright <[email protected]>
---
drivers/char/raw.c | 1 +
1 file changed, 1 insertion(+)

--- a/drivers/char/raw.c
+++ b/drivers/char/raw.c
@@ -90,6 +90,7 @@ out1:
blkdev_put(bdev, filp->f_mode);
out:
mutex_unlock(&raw_mutex);
+ unlock_kernel();
return err;
}