mirror of https://github.com/torvalds/linux.git
In tls_handshake_accept(), a netlink message is allocated using
genlmsg_new(). In the error handling path, genlmsg_cancel() is called
to cancel the message construction, but the message itself is not freed.
This leads to a memory leak.
Fix this by calling nlmsg_free() in the error path after genlmsg_cancel()
to release the allocated memory.
Fixes:
|
||
|---|---|---|
| .. | ||
| .kunitconfig | ||
| Makefile | ||
| alert.c | ||
| genl.c | ||
| genl.h | ||
| handshake-test.c | ||
| handshake.h | ||
| netlink.c | ||
| request.c | ||
| tlshd.c | ||
| trace.c | ||