• D
    sunsu: Fix use after free in su_remove(). · 9616ff43
    David S. Miller 提交于
    Real serial port 'up' objects are statically allocated from an
    array in the driver.  Keyboard and mouse ports, on the other
    hand, are dynamically allocated.
    
    Unfortunately, we free these dynamic 'up' objects before we unmap the
    I/O registers.
    
    Rearrange su_remove() so that this does not happen.
    
    Noticed by Julia Lawall.
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    9616ff43
sunsu.c 37.9 KB