mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-12-03 08:35:06 -06:00
[IRDA]: Fix memory leak in irttp_init()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
45fc3b11f1
commit
15166fadb0
@@ -100,6 +100,7 @@ int __init irttp_init(void)
|
||||
if (!irttp->tsaps) {
|
||||
IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
|
||||
__FUNCTION__);
|
||||
kfree(irttp);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user