projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d5b34
)
[PATCH] ide: fix revision comparison in ide_in_drive_list
author
Kirill Smelkov
<
[email protected]
>
Tue, 3 Oct 2006 08:14:18 +0000
(
01:14
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 3 Oct 2006 15:04:07 +0000
(08:04 -0700)
Fix ide_in_drive_list: drive_table->id_firmware should be searched *in*
id->fw_rev, not vice versa.
Signed-off-by: Kirill Smelkov <
[email protected]
>
Cc: Bartlomiej Zolnierkiewicz <
[email protected]
>
Cc: Alan Cox <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/ide/ide-dma.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-dma.c
b/drivers/ide/ide-dma.c
index 22ef73eb1f688b4efea45c232662b9d579605162..53feaf82576e837d9a29a7ba2e8baf46f37a649e 100644
(file)
--- a/
drivers/ide/ide-dma.c
+++ b/
drivers/ide/ide-dma.c
@@
-145,7
+145,7
@@
int ide_in_drive_list(struct hd_driveid *id, const struct drive_list_entry *driv
{
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;