caif: Add ref-count to framing layer
authorsjur.brandeland@stericsson.com <sjur.brandeland@stericsson.com>
Fri, 13 May 2011 02:44:02 +0000 (02:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 May 2011 21:45:55 +0000 (17:45 -0400)
commitcb3cb423a0f3c627639535e5d87977ae662d779f
tree37fae151f44b5549bf1d4fd437dd070315d78cad
parentf36214408470ecf6a052e76b72d05b2328b60fcf
caif: Add ref-count to framing layer

Introduce Per-cpu reference for lower part of CAIF Stack.
Before freeing payload is disabled, synchronize_rcu() is called,
and then ref-count verified to be zero.

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