https://github.com/torvalds/linux
Revision c545a945d0d9ea2ea2c7d23d43cf0d86e32cd7cf authored by Jon Maloy on 11 December 2017, 18:11:55 UTC, committed by David S. Miller on 13 December 2017, 18:44:36 UTC
In the function tipc_sk_mcast_rcv() we call refcount_dec(&skb->users)
on received sk_buffers. Since the reference counter might hit zero at
this point, we have a potential memory leak.

We fix this by replacing refcount_dec() with kfree_skb().

Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8359301
Raw File
Tip revision: c545a945d0d9ea2ea2c7d23d43cf0d86e32cd7cf authored by Jon Maloy on 11 December 2017, 18:11:55 UTC
tipc: eliminate potential memory leak
Tip revision: c545a94
README
Linux kernel
============

This file was moved to Documentation/admin-guide/README.rst

Please notice that there are several guides for kernel developers and users.
These guides can be rendered in a number of formats, like HTML and PDF.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
back to top