• J
    ibmvnic: Fix reset return from closed state · e676d81c
    John Allen 提交于
    The case in which we handle a reset from the state where the device is
    closed seems to be bugged for all types of reset. For most types of reset
    we currently exit the reset routine correctly, but don't set the state to
    indicate that we are back in the "closed" state. For some specific cases,
    we don't exit the reset routine at all and resetting will cause a closed
    device to be opened.
    
    This patch fixes the problem by unconditionally checking the reset_state
    and correctly setting the adapter state before returning.
    Signed-off-by: NJohn Allen <jallen@linux.vnet.ibm.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    e676d81c
ibmvnic.c 129.1 KB