mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
block: pass full fmode_t to blk_verify_command
Use the obvious calling convention. Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
d004a5e7d4
commit
f00c4d80ff
4 changed files with 14 additions and 16 deletions
|
|
@ -217,7 +217,7 @@ static int sg_allow_access(struct file *filp, unsigned char *cmd)
|
|||
if (sfp->parentdp->device->type == TYPE_SCANNER)
|
||||
return 0;
|
||||
|
||||
return blk_verify_command(cmd, filp->f_mode & FMODE_WRITE);
|
||||
return blk_verify_command(cmd, filp->f_mode);
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
|
|||
Loading…
Reference in a new issue