]> git.baikalelectronics.ru Git - kernel.git/commit
ide: Make ide_cdrom_prep_fs() initialize the sense buffer pointer
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 1 Nov 2017 22:31:49 +0000 (15:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Nov 2017 03:13:33 +0000 (20:13 -0700)
commit34529f6669d5e26292d8b05bd41fd3b5a8198ba7
tree83a2fddecc884f4a44fe224b025302649af83aad
parenta197909b34b3b1882b5e272c813a7b51b238c6eb
ide: Make ide_cdrom_prep_fs() initialize the sense buffer pointer

The changes introduced through commit a91f780c1d92 assume that the
sense buffer pointer in struct scsi_request is initialized for all
requests - passthrough and filesystem requests. Hence make sure
that that pointer is initialized for filesystem requests. Remove
the memset() call that clears .cmd because the scsi_req_init()
call in ide_initialize_rq() already initializes the .cmd.

Fixes: commit a91f780c1d92 ("block: split scsi_request out of struct request")
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ide/ide-cd.c