]> git.baikalelectronics.ru Git - kernel.git/commit
amt: fix possible memory leak in amt_rcv()
authorTaehee Yoo <ap420073@gmail.com>
Mon, 23 May 2022 16:17:08 +0000 (16:17 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 May 2022 04:36:16 +0000 (21:36 -0700)
commitfc88a4dae8ffc3718b549340bb4043388c4a7363
treebe36a6ae8030157e48a946e6363217a83b7406eb
parente7b40d2f29967d710884d432e2cc0594235a82b6
amt: fix possible memory leak in amt_rcv()

If an amt receives packets and it finds socket.
If it can't find a socket, it should free a received skb.
But it doesn't.
So, a memory leak would possibly occur.

Fixes: 19284cc854b3 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/amt.c