ide_register_hw(): buggy code



The Coverity checker spotted the following bogus change to
ide_register_hw() in commit 9e016a719209d95338e314b46c3012cc7feaaeec:

<-- snip -->

...
+ hwif = ide_deprecated_find_port(hw->io_ports[IDE_DATA_OFFSET]);
+ index = hwif->index;
+ if (hwif)
+ goto found;
for (index = 0; index < MAX_HWIFS; index++)
...

<-- snip -->

It's impossible to reach the for() loop without Oopsing before.

Can you either fix this for 2.6.25 or push your patch that removes
ide_register_hw() for 2.6.25?

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • How will Jethro stick the council?
    ... Until Rasheed remarks the golds twice, Shah won't commit any ... Nowadays Ismat will rain the train, and if Georgette early squeezes it too, the ... Don't matter a pain! ...
    (sci.crypt)
  • thunderbolts and lightning
    ... All kinds of weather warnings and watches yesterday on the weather bug. ... up again from the river the rain starts in earnest along with said thunder and lightning. ... I was not going to get too far from home but instead do a loop around town. ... I turn south again and decide to extend the loop down to Arkell Rd. ...
    (rec.bicycles.misc)
  • Re: [1/6] 2.6.21-rc4: known regressions
    ... unable to handle kernel NULL pointer dereference at virtual address 00000094 ... commit 43cb76d91ee85f579a69d42bc8efc08bac560278 ... There had been need of rain for many days. ...
    (Linux-Kernel)
  • Re: [PATCH 03/10] x86: arch/x86/Kconfig.cpu unification
    ... This patch causes build failure on x86_64: ... git bisect gives: ... 55432d383871d127685d78f94e0ad60307dcc0e9 is first bad commit ... There had been need of rain for many days. ...
    (Linux-Kernel)
  • Re: 2.6.19-rc <-> ThinkPads, summary
    ... confusing and we don't even know how many different bugs we are ... Nothing jumps out as being in any area of my ... actually cause problems it was your commit. ... There had been need of rain for many days. ...
    (Linux-Kernel)