mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
210417ce83
commit
24a6a3037e
1 changed files with 0 additions and 1 deletions
|
@ -445,7 +445,6 @@ static int pic32_uart_startup(struct uart_port *port)
|
|||
sport->idx);
|
||||
if (!sport->irq_rx_name) {
|
||||
dev_err(port->dev, "%s: kasprintf err!", __func__);
|
||||
kfree(sport->irq_fault_name);
|
||||
ret = -ENOMEM;
|
||||
goto out_f;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue