commit | 7db8874abd9a134821881bb99301b3afbbe9b080 | [log] [tgz] |
---|---|---|
author | Pan Bian <bianpan2016@163.com> | Sun Oct 29 21:57:22 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Nov 01 12:11:02 2017 +0900 |
tree | 1698685a82202bda42e63aaa2f3ce863624af058 | |
parent | 04686ef299db5ff299bfc5a4504b189e46842078 [diff] |
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>