]> git.baikalelectronics.ru Git - kernel.git/commit
Phonet: fix NULL dereference on TX path with implicit source
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 8 Mar 2011 22:44:06 +0000 (22:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2011 19:59:29 +0000 (11:59 -0800)
commite8e48027588c632254a0082074eb39df156ada6e
tree85989f9259365d5470113e810237b567ba93af37
parent5aeadab9d1b431ba8bcda7c966a67ec2216a9c48
Phonet: fix NULL dereference on TX path with implicit source

The previous Phonet patch series introduced per-socket implicit
destination (i.e. connect()). In that case, the destination
socket address is NULL in the transmit function.
However commit 5f80930c5fb6209a1bab046fe04788d65ed7983e
("Phonet: implement per-socket destination/peer address")
is incomplete and would trigger a NULL dereference.
(Fortunately, the code is not in released kernel, and in fact
 currently not reachable.)

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