diff options
author | Pan Bian <bianpan2016@163.com> | 2017-10-29 16:57:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-01 06:11:02 +0300 |
commit | 7db8874abd9a134821881bb99301b3afbbe9b080 (patch) | |
tree | 1698685a82202bda42e63aaa2f3ce863624af058 /tools/perf/scripts/python/stat-cpi.py | |
parent | 04686ef299db5ff299bfc5a4504b189e46842078 (diff) | |
download | linux-7db8874abd9a134821881bb99301b3afbbe9b080.tar.xz |
net: lapbether: fix double free
The function netdev_priv() returns the private data of the device. The
memory to store the private data is allocated in alloc_netdev() and is
released in netdev_free(). Calling kfree() on the return value of
netdev_priv() after netdev_free() results in a double free bug.
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions