Phonet: fix oops in phonet_address_del() on non-Phonet device
commit7e5ab54296a41f590c9cbc976e1c86272f3a7e00
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Wed, 26 Nov 2008 23:26:43 +0000 (26 15:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 23:26:43 +0000 (26 15:26 -0800)
treee3ccf692a222e7c797b3cdbddfc8b09ef8e69d1a
parent3ec192559033ed457f0d7856838654c100fc659f
Phonet: fix oops in phonet_address_del() on non-Phonet device

A NULL dereference would occur when trying to delete an addres from a
network device that does not have any Phonet address.

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