diff options
| author | Christophe JAILLET <[email protected]> | 2021-05-25 19:44:04 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-05-27 13:20:05 +0000 |
| commit | fad92b11047a748c996ebd6cfb164a63814eeb2e (patch) | |
| tree | d6878e40484202958049f855d3e346ad9f0e6215 /drivers/net/xen-netback/interface.c | |
| parent | tty: nozomi: Fix the error handling path of 'nozomi_card_init()' (diff) | |
| download | kernel-fad92b11047a748c996ebd6cfb164a63814eeb2e.tar.gz kernel-fad92b11047a748c996ebd6cfb164a63814eeb2e.zip | |
tty: serial: 8250: serial_cs: Fix a memory leak in error handling path
In the probe function, if the final 'serial_config()' fails, 'info' is
leaking.
Add a resource handling path to free this memory.
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/dc25f96b7faebf42e60fe8d02963c941cf4d8124.1621971720.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions
