projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a64e5a8
)
scsi: sg: sg_ioctl(): get rid of access_ok()
author
Al Viro
<viro@zeniv.linux.org.uk>
Thu, 17 Oct 2019 19:39:25 +0000
(20:39 +0100)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Wed, 6 Nov 2019 05:04:03 +0000
(
00:04
-0500)
simply not needed there - neither sg_new_read() nor sg_new_write() need
it.
Link:
https://lore.kernel.org/r/20191017193925.25539-8-viro@ZenIV.linux.org.uk
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sg.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/sg.c
b/drivers/scsi/sg.c
index f3d090b93cdf691d59a4540c22af843c4a255833..0940abd91d3ce4f5b96a27eaaaf586f14af19ca4 100644
(file)
--- a/
drivers/scsi/sg.c
+++ b/
drivers/scsi/sg.c
@@
-896,8
+896,6
@@
sg_ioctl(struct file *filp, unsigned int cmd_in, unsigned long arg)
return -ENODEV;
if (!scsi_block_when_processing_errors(sdp->device))
return -ENXIO;
- if (!access_ok(p, SZ_SG_IO_HDR))
- return -EFAULT;
result = sg_new_write(sfp, filp, p, SZ_SG_IO_HDR,
1, read_only, 1, &srp);
if (result < 0)