Messages in this thread |  | | | Subject | 'black list' in drivers/block/ide_modes.h is broken | | From | Michal Jankowski <> | | Date | 29 Apr 1997 21:37:26 +0200 |
| |
Due to the way a disk name is compared to the 'black list', some perfectly good new hard drives are mistakenly recognized as old, broken, blacklisted ones.
For example, "WDC 21200H" will match a (blacklisted) "WDC 2120", because only as many characters as are present in a blacklisted name are checked.
The offending line of code is:
if (strncmp(p->name, model, strlen(p->name)) == 0) No, I don't know what the proper fix might be 8-)
MJ
|  |