Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH] ide: fix revision comparison in ide_in_drive_list
@ 2006-06-20 10:52 Kirill Smelkov
  2006-06-20 22:19 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: Kirill Smelkov @ 2006-06-20 10:52 UTC (permalink / raw)
  To: Andrew Morton, B.Zolnierkiewicz; +Cc: linux-kernel, linux-ide

NB: bart/ide-2.6.git seems to be unmaintained,  so I'm sending this directly to -mm

Fix ide_in_drive_list:  drive_table->id_firmware should be searched *in* id->fw_rev,
not vise versa.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>

Index: linux-2.6.17/drivers/ide/ide-dma.c
===================================================================
--- linux-2.6.17.orig/drivers/ide/ide-dma.c	2006-06-20 13:51:49.000000000 +0400
+++ linux-2.6.17/drivers/ide/ide-dma.c	2006-06-20 13:52:14.000000000 +0400
@@ -147,7 +147,7 @@
 {
 	for ( ; drive_table->id_model ; drive_table++)
 		if ((!strcmp(drive_table->id_model, id->model)) &&
-		    ((strstr(drive_table->id_firmware, id->fw_rev)) ||
+		    ((strstr(id->fw_rev, drive_table->id_firmware)) ||
 		     (!strcmp(drive_table->id_firmware, "ALL"))))
 			return 1;
 	return 0;


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

end of thread, other threads:[~2006-06-21 13:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-20 10:52 [PATCH] ide: fix revision comparison in ide_in_drive_list Kirill Smelkov
2006-06-20 22:19 ` Andrew Morton
2006-06-20 23:12   ` Alan Cox
2006-06-21  6:17     ` Kirill Smelkov
2006-06-21 11:44       ` Alan Cox
2006-06-21 13:11         ` Kirill Smelkov

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