• Sebastian Ott's avatar
    [S390] cio: fix memleak in resume path · 74b6127e
    Sebastian Ott authored
    If a ccwdevice is lost during hibernation and a different
    ccwdevice is attached to the same subchannel, we will
    deregister the old ccw device and register the new one.
    
    Since deregistration is not allowed in this context, we
    handle this action later. However, some parts of the
    registration process for the new device were started anyway,
    so that the old device structure is no longer accessible.
    
    Fix this by deferring both actions to the afterwards
    scheduled subchannel event.
    Signed-off-by: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
    Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
    74b6127e
device.c 52.3 KB