[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:
parent
45fc3b11f1
commit
15166fadb0
|
@ -100,6 +100,7 @@ int __init irttp_init(void)
|
||||||
if (!irttp->tsaps) {
|
if (!irttp->tsaps) {
|
||||||
IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
|
IRDA_ERROR("%s: can't allocate IrTTP hashbin!\n",
|
||||||
__FUNCTION__);
|
__FUNCTION__);
|
||||||
|
kfree(irttp);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue