Subject: Re: [BUG -next] in pcmcia: use struct resource for PCMCIA devices, part 2

From: Dominik Brodowski <[email-masked]>
Date: Tue, 3 Aug 2010 08:12:57 +0200

Hey,

On Tue, Aug 03, 2010 at 01:53:21AM +0200, Christoph Fritz wrote:
> drivers/pcmcia/ds.c
>   555         for (i = 0; i < (MAX_IO_WIN + MAX_WIN); i++) {                                                                             
>   556             c->io[i].name = p_dev->devname;                                                                                        
> 
> with 'io' only defined to MAX_IO_WIN
> 
> drivers/pcmcia/cs_internal.h
>   42     struct resource io[MAX_IO_WIN]; /* io ports */                                                                        

Yes, this is ugly (and will be fixed right now), but it isn't really a bug,
for we want c->mem[i].name to be set too, and c->mem[] follows immediately
c->io[] and is sufficientyly large.

Best,
	Dominik