https://github.com/torvalds/linux
Revision 382e1eea2d983cd2343482c6a638f497bb44a636 authored by Florian Fainelli on 08 February 2017, 07:10:13 UTC, committed by David S. Miller on 08 February 2017, 19:50:51 UTC
dsa_slave_create() can fail, and dsa_user_port_unapply() will properly check
for the network device not being NULL before attempting to destroy it. We were
not setting the slave network device as NULL if dsa_slave_create() failed, so
we would later on be calling dsa_slave_destroy() on a now free'd and
unitialized network device, causing crashes in dsa_slave_destroy().

Fixes: 83c0afaec7b7 ("net: dsa: Add new binding implementation")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 73d2c66
History
Tip revision: 382e1eea2d983cd2343482c6a638f497bb44a636 authored by Florian Fainelli on 08 February 2017, 07:10:13 UTC
net: dsa: Do not destroy invalid network devices
Tip revision: 382e1ee
File Mode Size
.gitignore -rw-r--r-- 44 bytes
Kconfig -rw-r--r-- 2.6 KB
Makefile -rw-r--r-- 3.7 KB
system_certificates.S -rw-r--r-- 917 bytes
system_keyring.c -rw-r--r-- 6.8 KB

back to top