• Breno Leitao's avatar
    qlge: Only free resources if they were allocated · 4f9a91c8
    Breno Leitao authored
    Currently qlge tries to release regions even if they were not allocated.
    This causes messages like the following in the kernel log
    
    Trying to free nonexistent resource <00000000006af400-00000000006af4ff>
    Trying to free nonexistent resource <00003c04ff9f4000-00003c04ff9f7fff>
    Trying to free nonexistent resource <00003c04ffc00000-00003c04ffcfffff>
    
    This patch fixes the goto logic in order to not release the resources
    if they were not allocated.
    Signed-off-by: default avatarBreno Leitao <leitao@linux.vnet.ibm.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    4f9a91c8
qlge_main.c 119 KB