]> err.no Git - linux-2.6/commit
[PATCH] fix ancient breakage in ebus_init()
authorAl Viro <viro@ftp.linux.org.uk>
Sat, 23 Sep 2006 00:18:41 +0000 (01:18 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 23 Sep 2006 00:48:56 +0000 (17:48 -0700)
commitcc9bd99e9adfa4f44ea050a63fb41a3f764acf84
treed8f4512b107305f119d727e7fd3f523fd9125f4e
parenta83fbf635992442edf6aa3252e4008d4a08edf12
[PATCH] fix ancient breakage in ebus_init()

Back when pci_dev had base_address[], loop of form
base = &...->base_address[0];
for (.....) {
...
*base++ = addr;
}
was fine, but when that array got spread in ->resource[...].start
replacing the initialization with
base = &...->resource[0].start;
was not a sufficient modification.  IOW this code got broken for cases
when there had been more than one resource to fill.  All way back in
2.3.41-pre3...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/sparc/kernel/ebus.c