The following patch fixes this, and also fixes the similar problem in scsi_debug.c:
Attach a file by drag & drop or click to upload