lkml.org 
[lkml]   [1997]   [Apr]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Subject'black list' in drivers/block/ide_modes.h is broken
From
Date
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

\
 
 \ /
  Last update: 2005-03-22 13:39    [from the cache]
©2003-2011 Jasper Spaans