irda: irttp: fix memory leak in irttp_open_tsap() error path
authorTommi Rantala <tt.rantala@gmail.com>
Mon, 26 Nov 2012 04:16:44 +0000 (04:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2012 16:25:29 +0000 (11:25 -0500)
Cleanup the memory we allocated earlier in irttp_open_tsap() when we hit
this error path. The leak goes back to at least 1da177e4
("Linux-2.6.12-rc2").

Discovered with Trinity (the syscall fuzzer).

Signed-off-by: Tommi Rantala <tt.rantala@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found