diff options
author | Christoph Hellwig <hch@lst.de> | 2017-11-05 10:36:31 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-11-10 19:53:25 -0700 |
commit | f00c4d80ffdac9e3a64947ebd57489f3232d5a74 (patch) | |
tree | 1af98eb6b73480a69a2ff951dd7d8b68604aeaa3 /drivers/scsi | |
parent | d004a5e7d4dd6335ce6e2044af42f5e0fbebb51d (diff) | |
download | linux-f00c4d80ffdac9e3a64947ebd57489f3232d5a74.tar.bz2 |
block: pass full fmode_t to blk_verify_command
Use the obvious calling convention.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/sg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index 0419c2298eab..92fd870e1315 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -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 |