]> git.baikalelectronics.ru Git - kernel.git/commit
sg: pass the device name to blk_trace_setup
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Aug 2021 07:54:38 +0000 (09:54 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 25 Aug 2021 12:46:54 +0000 (06:46 -0600)
commit77219df41ec09c31e902e47431e47db27a4f531e
tree1cc1937febff5cf1de997ae18c06aaf86b5bbaea
parentf4213fb0ea6fa89a6b6738e6f82b2da8671238ef
sg: pass the device name to blk_trace_setup

Fix a regression that passed a NULL device name to blk_trace_setup
accidentally.

Fixes: d7d42f1f762f ("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>
drivers/scsi/sg.c