Phonet: fix potential use-after-free in pep_sock_close()
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 25 May 2010 23:08:39 +0000 (16:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 May 2010 23:08:39 +0000 (16:08 -0700)
commite513480e28cdfd868755f05c1a654fcfcee58070
tree53fd9bf4786dc56843641912fdc260c1b76f1613
parent7466a38478a30d5f7248134c9bdcb4e1c01fe4d9
Phonet: fix potential use-after-free in pep_sock_close()

sk_common_release() might destroy our last reference to the socket.
So an extra temporary reference is needed during cleanup.

Signed-off-by: Rémi Denis-Courmont <remi.denis-courmont@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/phonet/pep.c