]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: pic32_uart: Fix double free of 'sport->irq_fault_name'.
authorPurna Chandra Mandal <purna.mandal@microchip.com>
Tue, 17 May 2016 05:05:54 +0000 (10:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 20:50:53 +0000 (13:50 -0700)
commit24a6a3037e0b47168f9b3bb9db7ad60c89dad7ba
treea2e09aa866698d1184bc73b10ce4fe24a66b082e
parent210417ce836aa3f0ededcc8f541f5e4a05d2e880
serial: pic32_uart: Fix double free of 'sport->irq_fault_name'.

Allocated memory for 'sport->irq_fault_name' is freed twice, first
in error check of 'if(!sport->irq_rx_name)' and other in fallback
handler.

Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pic32_uart.c