mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
[IRDA]: Fix memory leak in irttp_init()
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
45fc3b11f1
commit
15166fadb0
1 file changed
+1
@@ -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