Yes, this is one of the things my somewhat fixed aha1542.c avoids:

The official aha1542.c does

    if(*cmd == REQUEST_SENSE){
#ifndef DEBUG
      if (bufflen != sizeof(SCpnt->sense_buffer)) {
        printk("Wrong buffer length supplied for request sense (%d)\n",bufflen);
      };
#endif

My aha1542.c does

        if(*cmd == REQUEST_SENSE){
                /* Don't do the command - we have the sense data already */
#if 0
                /* scsi_request_sense() provides a buffer of size 256,
                   so there is no reason to expect equality */
                if (bufflen != sizeof(SCpnt->sense_buffer))
                        printk("aha1542: Wrong buffer length supplied "
                               "for request sense (%d)\n", bufflen);
#endif

Andries

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to