tipc: Fix use-after-free of kernel socket in cleanup_bearer().
JIRA: https://issues.redhat.com/browse/RHEL-72258 CVE: CVE-2024-56642 Tested: compile only
The first patch is the commit for this CVE, and the second patch is a follow-up of the first patch.
Signed-off-by: Xin Long lxin@redhat.com