br2684: allow assign only on a connected socket
authorKrzysztof Mazur <krzysiek@podlesie.net>
Wed, 28 Nov 2012 08:08:04 +0000 (09:08 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 2 Dec 2012 00:05:19 +0000 (00:05 +0000)
commit9eba25268e5862571d53122065616c456fe1142a
tree30c5053cd10de8dc4c75825d62f89e183e911247
parent007ef52be171b9eee6f4099d3e5706e8068d31ef
br2684: allow assign only on a connected socket

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

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

Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
net/atm/br2684.c