scsi: scsi_ioctl: Remove scsi_verify_blk_ioctl()
authorChristoph Hellwig <hch@lst.de>
Sat, 24 Jul 2021 07:20:19 +0000 (09:20 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 29 Jul 2021 02:24:25 +0000 (22:24 -0400)
commit4f07bfc56157ebc689ef54879e90c48a47294083
treee9622759f995104badfc5b9d25dbb8ec49b2648f
parentfb1ba406c451045f1063ace70086b4645d4e9d54
scsi: scsi_ioctl: Remove scsi_verify_blk_ioctl()

Manually verify that the device is not a partition and the caller has admin
privŃ–leges at the beginning of the sr ioctl method and open code the
trivial check for sd as well.

Link: https://lore.kernel.org/r/20210724072033.1284840-11-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
block/scsi_ioctl.c
drivers/scsi/sd.c
drivers/scsi/sr.c
include/linux/blkdev.h