• Patrick Mansfield's avatar
    [PATCH] fix scsi_mode_data length result · bcf2227c
    Patrick Mansfield authored
    I have some Seagate drives that apparently return to much data when asked
    for 31 bytes for a MODE SENSE cache page, resulting in buffer overruns.
    Requests for 4 bytes work fine.
    
    Changing __scsi_mode_sense to correctly set the scsi_mode_data length
    per the following patch fixed the problem for me.
    bcf2227c
scsi_request.h 2.38 KB