Skip to content

Commit

Permalink
Add a missing unlock_kernel() in raw_open()
Browse files Browse the repository at this point in the history
Cc: stable@kernel.org
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Dan Carpenter authored and Jonathan Corbet committed Mar 27, 2009
1 parent 60aa492 commit 996ff68
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 996ff68

Please sign in to comment.