diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-25 10:54:38 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-25 15:46:54 +0300 |
commit | 1d1cf156dc176e30eeaced5cf1450d582d387b81 (patch) | |
tree | 1cc1937febff5cf1de997ae18c06aaf86b5bbaea /drivers/scsi | |
parent | 1e294970fc00f45c1f17fb442c26a7e3fc9789b1 (diff) | |
download | linux-1d1cf156dc176e30eeaced5cf1450d582d387b81.tar.xz |
sg: pass the device name to blk_trace_setup
Fix a regression that passed a NULL device name to blk_trace_setup
accidentally.
Fixes: aebbb5831fbd ("sg: do not allocate a gendisk")
Reported-by: syzbot+f74aa89114a236643919@syzkaller.appspotmail.com
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Link: https://lore.kernel.org/r/20210825075438.1883687-1-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 477267add49d..d5889b4f0fd4 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c @@ -1118,7 +1118,7 @@ sg_ioctl_common(struct file *filp, Sg_device *sdp, Sg_fd *sfp, return put_user(max_sectors_bytes(sdp->device->request_queue), ip); case BLKTRACESETUP: - return blk_trace_setup(sdp->device->request_queue, NULL, + return blk_trace_setup(sdp->device->request_queue, sdp->name, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), NULL, p); case BLKTRACESTART: |