Skip to content
Snippets Groups Projects
Commit 996ff68d authored by Dan Carpenter's avatar Dan Carpenter Committed by Jonathan Corbet
Browse files

Add a missing unlock_kernel() in raw_open()


Cc: stable@kernel.org
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 60aa4924
No related branches found
No related tags found
No related merge requests found
......@@ -90,6 +90,7 @@ static int raw_open(struct inode *inode, struct file *filp)
blkdev_put(bdev, filp->f_mode);
out:
mutex_unlock(&raw_mutex);
unlock_kernel();
return err;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment