aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorGustavo Padovan <[email protected]>2013-10-15 19:24:46 -0300
committerMarcel Holtmann <[email protected]>2013-10-15 16:42:44 -0700
commitf8e73017c15b007bd519d0049305bb377e8cc1f5 (patch)
tree84aac391f8318e1771140401c9ea109f516fdc09 /net/lapb/lapb_subr.c
parent53f5212121fc3bcd0bccb8841c01e08ca942f333 (diff)
Bluetooth: Add l2cap_state_change_and_error()
l2cap_state_change_and_error() introduces the ability to update a l2cap_user with changes in channel's state and error code with just one call. The main reason for this is to avoid race conditions between and setting the state and then the error. Otherwise we would need to release the lock between both operations. This is another step of an ongoing work to make l2cap_core.c totally independent from l2cap's struct sock. Signed-off-by: Gustavo Padovan <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions