Thomas Schmitt 2020-08-11 10:44:07 +00:00
parent 72c2031652
commit dfaa74b1af

@ -94,6 +94,10 @@ function `sr_block_ioctl()` in case of SG_IO:
static int sr_block_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd,
unsigned long arg)
{
...
#include <scsi/sg.h> /* For number value of ioctl cmd SG_IO */
...
...
if (cmd != SG_IO)
mutex_lock(&sr_mutex);