Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 827730
Collapse All | Expand All

(-)a/drivers/scsi/sd.c (+7 lines)
Lines 2604-2609 sd_do_mode_sense(struct scsi_disk *sdkp, int dbd, int modepage, Link Here
2604
		 unsigned char *buffer, int len, struct scsi_mode_data *data,
2604
		 unsigned char *buffer, int len, struct scsi_mode_data *data,
2605
		 struct scsi_sense_hdr *sshdr)
2605
		 struct scsi_sense_hdr *sshdr)
2606
{
2606
{
2607
	/*
2608
	 * If we must use MODE SENSE(10), make sure that the buffer length
2609
	 * is at least 8 bytes so that the mode sense header fits.
2610
	 */
2611
	if (sdkp->device->use_10_for_ms && len < 8)
2612
		len = 8;
2613
2607
	return scsi_mode_sense(sdkp->device, dbd, modepage, buffer, len,
2614
	return scsi_mode_sense(sdkp->device, dbd, modepage, buffer, len,
2608
			       SD_TIMEOUT, sdkp->max_retries, data,
2615
			       SD_TIMEOUT, sdkp->max_retries, data,
2609
			       sshdr);
2616
			       sshdr);

Return to bug 827730