• Al Viro's avatar
    [PATCH] fix ancient breakage in ebus_init() · cc9bd99e
    Al Viro authored
    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: default avatarAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    cc9bd99e
ebus.c 9.12 KB