]> git.karo-electronics.de Git - linux-beck.git/commit
netpoll: fix use after free
authordavid decotigny <decot@googlers.com>
Tue, 8 Jul 2014 22:14:41 +0000 (15:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2014 03:50:53 +0000 (20:50 -0700)
commitefa95b01da18ad22af62f6d99a3243f3be8fd264
treec931e08ed3a660e859bdfc1afd1a2ac014485b8a
parentf51de24356e49e4dcb5095e87717065580912120
netpoll: fix use after free

After a bonding master reclaims the netpoll info struct, slaves could
still hold a pointer to the reclaimed data. This patch fixes it: as
soon as netpoll_async_cleanup is called for a slave (eg. when
un-enslaved), we make sure that this slave doesn't point to the data.

Signed-off-by: David Decotigny <decot@googlers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c