while (!(res->dma_resource[i].flags & IORESOURCE_UNSET) && i < PNP_MAX_DMA) i++; 
while (i < PNP_MAX_DMA && !(res->dma_resource[i].flags & IORESOURCE_UNSET)) i++; 
pnpbios_parse_allocated_dmaresource(struct pnp_resource_table * res, int dma){	int i = 0;	while (!(res->dma_resource[i].flags & IORESOURCE_UNSET) && i < PNP_MAX_DMA) i++;	if (i < PNP_MAX_DMA) {		res->dma_resource[i].flags = IORESOURCE_DMA;  // Also clears _UNSET flag		if (dma == -1) {			res->dma_resource[i].flags |= IORESOURCE_DISABLED;			return;		}		res->dma_resource[i].start =		res->dma_resource[i].end = (unsigned long) dma;	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6e3e98d1dcf944b999757b769d910f2b506ca5b9/rsparser.c/buggy/drivers/pnp/pnpbios/rsparser.c