pppoatm: allow assign only on a connected socket
authorKrzysztof Mazur <krzysiek@podlesie.net>
Tue, 6 Nov 2012 22:16:58 +0000 (23:16 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 28 Nov 2012 00:37:02 +0000 (00:37 +0000)
commit3b1a914595f3f9beb9e38ff3ddc7bdafa092ba22
tree03acc4ae1063017d6986d149cd4ffe5140f3e63c
parentec809bd817dfa1905283468e4c813684ed4efe78
pppoatm: allow assign only on a connected socket

The pppoatm does not check if used vcc is in connected state,
causing an Oops in pppoatm_send() when vcc->send() is called
on not fully connected socket.

Now pppoatm can be assigned only on connected sockets; otherwise
-EINVAL error is returned.

Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
Cc: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
net/atm/pppoatm.c