• Alan Cox's avatar
    tty: Fix leak in ti-usb · cf545093
    Alan Cox authored
    If the ti-usb adapter returns an zero data length frame (which happens)
    then we leak a kref.  Found by Christoph Mair <christoph.mair@gmail.com>
    who proposed a patch.  The patch here is different as Christoph's patch
    didn't work for the case where tty = NULL and data arrived but Christoph
    did all the hard work chasing it down.
    Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    cf545093
ti_usb_3410_5052.c 48.8 KB