Phonet: return an error when packet TX fails
authorRémi Denis-Courmont <remi.denis-courmont@nokia.com>
Tue, 8 Mar 2011 22:44:07 +0000 (22:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2011 19:59:30 +0000 (11:59 -0800)
commitb765e84f96f728e8e178348fc102f126c1736193
tree2343dc694989604ea873923936cace52e5157040
parentc69d4407d8884e8a127f95d07b1896443f3716ff
Phonet: return an error when packet TX fails

Phonet assumes that packets are never dropped. We try our best to
avoid this situation. But lets return ENOBUFS if queueing to the
network device fails so that the caller knows things went wrong.

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