caif: Protected in-flight packets using dev or sock refcont.
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Fri, 13 May 2011 02:44:04 +0000 (02:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 May 2011 21:45:55 +0000 (17:45 -0400)
commitb3ccfbe4098a5542177d0f34e8979f32e7d606e1
tree3f0046e3b519ea253db222abcb761af34b8a1718
parent43e3692101086add8719c3b8b50b05c9ac5b14e1
caif: Protected in-flight packets using dev or sock refcont.

CAIF Socket Layer and ip-interface registers reference counters
in CAIF service layer. The functions sock_hold, sock_put and
dev_hold, dev_put are used by CAIF Stack to protect from freeing
memory while packets are in-flight.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/caif/caif_dev.h
net/caif/caif_socket.c
net/caif/chnl_net.c