• Russell King's avatar
    [PCMCIA] Fix resource handling for memory probe · d6ac0fde
    Russell King authored
    Add claim_region and free_region to claim/free resource regions.
    This ensures that we only attempt to probe memory regions which
    are directly related to the socket in question, rather than any
    memory region we happen to be able to request.
    
    This also fixes a memory leak where we don't kfree the resources
    we previously allocated.
    d6ac0fde
rsrc_mgr.c 22.8 KB