mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 20:30:57 +07:00
pcmcia: do not meddle with already assigned resources
Do not release any iomem resources already in use. Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
parent
cd2e18fe78
commit
fa0b3bc504
@ -727,13 +727,6 @@ static int adjust_memory(struct pcmcia_socket *s, unsigned int action, unsigned
|
||||
break;
|
||||
case REMOVE_MANAGED_RESOURCE:
|
||||
ret = sub_interval(&data->mem_db, start, size);
|
||||
if (!ret) {
|
||||
struct pcmcia_socket *socket;
|
||||
down_read(&pcmcia_socket_list_rwsem);
|
||||
list_for_each_entry(socket, &pcmcia_socket_list, socket_list)
|
||||
release_cis_mem(socket);
|
||||
up_read(&pcmcia_socket_list_rwsem);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ret = -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user