public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sd.c fixes applied incorectly to 2.4.19-preXX
@ 2002-04-15 20:40 Justin T. Gibbs
  2002-04-15 20:51 ` James Bottomley
  2002-04-16  5:58 ` Jens Axboe
  0 siblings, 2 replies; 12+ messages in thread
From: Justin T. Gibbs @ 2002-04-15 20:40 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: linux-scsi, Alan Cox

Marcelo,

Looking at the latest version of your tree via bitkeeper, it
seems that the wrong patch has been applied to sd.c.  In its
current state, the disk driver will fail to act upon any sense
data returned by the low level controller.  The following patch
restores correct behavior.

--
Justin

===== sd.c 1.21 vs edited =====
--- 1.21/drivers/scsi/sd.c	Fri Apr  5 09:19:03 2002
+++ edited/sd.c	Mon Apr 15 14:32:51 2002
@@ -621,7 +621,7 @@
 
 	/* An error occurred */
 	if (driver_byte(result) != 0 && 	/* An error occured */
-	    SCpnt->sense_buffer[0] != 0xF0) {	/* Sense data is valid */
+	    SCpnt->sense_buffer[0] == 0xF0) {	/* Sense data is valid */
 		switch (SCpnt->sense_buffer[2]) {
 		case MEDIUM_ERROR:
 			error_sector = (SCpnt->sense_buffer[3] << 24) |

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2002-04-16 17:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-15 20:40 [PATCH] sd.c fixes applied incorectly to 2.4.19-preXX Justin T. Gibbs
2002-04-15 20:51 ` James Bottomley
2002-04-15 21:13   ` Justin T. Gibbs
2002-04-16 14:03     ` James Bottomley
2002-04-16 14:43       ` Justin T. Gibbs
2002-04-16 14:56         ` James Bottomley
2002-04-16 15:25           ` Tony Battersby
2002-04-16 17:36             ` Justin T. Gibbs
2002-04-16 16:18           ` Oliver Xymoron
2002-04-16 17:38             ` Justin T. Gibbs
2002-04-16  5:58 ` Jens Axboe
2002-04-16 14:08   ` Justin T. Gibbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox