Fix socket memory mapping bug - we need to take account of the
requested card offset when returning the address for ioremap.
}
- start = (map->flags & MAP_ATTRIB) ? skt->phys_attr : skt->phys_mem;
-
if (map->sys_stop == 0)
map->sys_stop = PAGE_SIZE-1;
+ start = (map->flags & MAP_ATTRIB) ? skt->phys_attr : skt->phys_mem;
map->sys_stop -= map->sys_start;
- map->sys_stop += start;
- map->sys_start = start;
+ map->sys_stop += start + map->card_start;
+ map->sys_start = start + map->card_start;
skt->pc_mem_map[map->map] = *map;