mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] pass fmode_t to blkdev_put()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
511de73ff0
commit
9a1c354276
14 changed files with 38 additions and 38 deletions
|
|
@ -87,7 +87,7 @@ static int raw_open(struct inode *inode, struct file *filp)
|
|||
out2:
|
||||
bd_release(bdev);
|
||||
out1:
|
||||
blkdev_put(bdev);
|
||||
blkdev_put(bdev, filp->f_mode);
|
||||
out:
|
||||
mutex_unlock(&raw_mutex);
|
||||
return err;
|
||||
|
|
@ -112,7 +112,7 @@ static int raw_release(struct inode *inode, struct file *filp)
|
|||
mutex_unlock(&raw_mutex);
|
||||
|
||||
bd_release(bdev);
|
||||
blkdev_put(bdev);
|
||||
blkdev_put(bdev, filp->f_mode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue