lkml.org 
[lkml]   [1996]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectFollow to 1.3.100 IDE error
Date
This is a little follow up to my previous post.  I think that I have found
the error. Seems to be quite obvious...

in ide.c:

static void save_match (ide_hwif_t *hwif, ide_hwif_t *new, ide_hwif_t **match)
{
ide_hwif_t *m = *match;

if (m && m->hwgroup && m->hwgroup != new->hwgroup) {
if (!new->hwgroup)
return;
printk("%s: potential irq problem with %s and %s\n", hwif->name, }

if (m->irq != hwif->irq) /* don't undo a prior perfect match */
^^^ Error!!!!!
*match = new;
}

In the marked line, 'm' may still be initialized to NULL. I'm not sure on
the fix... It probably should be a simple m && m->irq or !m || m->irq.
But since i'm no expert on the kernel...

Anxiously awaiting 101...

Mike





\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.021 / U:2.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site