kopia lustrzana https://gitlab.com/sane-project/backends
rodzic
aa85bb0192
commit
a690b94687
|
@ -2082,7 +2082,7 @@ sanei_scsi_req_wait (void *id)
|
||||||
|
|
||||||
/* check for errors, but let the sense_handler decide.... */
|
/* check for errors, but let the sense_handler decide.... */
|
||||||
if ( (req->sgdata.cdb.hdr.result != 0) ||
|
if ( (req->sgdata.cdb.hdr.result != 0) ||
|
||||||
( (req->sgdata.cdb.hdr.sense_buffer[0] & 0x7f) != 0))
|
( (req->sgdata.cdb.hdr.sense_buffer[0] & 0x7f) != 0)
|
||||||
#ifdef HAVE_SG_TARGET_STATUS
|
#ifdef HAVE_SG_TARGET_STATUS
|
||||||
/* this is messy... Sometimes it happens that we have
|
/* this is messy... Sometimes it happens that we have
|
||||||
a valid looking sense buffer, but the DRIVER_SENSE
|
a valid looking sense buffer, but the DRIVER_SENSE
|
||||||
|
@ -2091,6 +2091,7 @@ sanei_scsi_req_wait (void *id)
|
||||||
*/
|
*/
|
||||||
&& (req->sgdata.cdb.hdr.driver_status & DRIVER_SENSE)
|
&& (req->sgdata.cdb.hdr.driver_status & DRIVER_SENSE)
|
||||||
#endif
|
#endif
|
||||||
|
)
|
||||||
{
|
{
|
||||||
SANEI_SCSI_Sense_Handler handler
|
SANEI_SCSI_Sense_Handler handler
|
||||||
= fd_info[req->fd].sense_handler;
|
= fd_info[req->fd].sense_handler;
|
||||||
|
|
Ładowanie…
Reference in New Issue