Removed a bug with SCSI address of scanned drives without such address

This commit is contained in:
2006-09-23 13:26:42 +00:00
parent f54345ff82
commit b44553733d
3 changed files with 10 additions and 4 deletions

View File

@ -766,6 +766,9 @@ int burn_drive_obtain_scsi_adr(char *path, int *host_no, int *channel_no,
*channel_no = drive_array[i].channel;
*target_no = drive_array[i].id;
*lun_no = drive_array[i].lun;
if (*host_no < 0 || *channel_no < 0 ||
*target_no < 0 || *lun_no < 0)
return 0;
return 1;
}
}