]> git.baikalelectronics.ru Git - kernel.git/commit
caif: Fix for a race in socket transmit with flow control.
authorDmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
Sun, 11 Mar 2012 10:28:31 +0000 (10:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Mar 2012 22:38:16 +0000 (15:38 -0700)
commit83eee8e278dc12e2f4a853c15d6b3e170bea1b0e
tree5249fa436617d45cd2c3e5fad60732fc6d1a0e94
parentfeb31459be75656553295888d77463c0374efa79
caif: Fix for a race in socket transmit with flow control.

Kill faulty checks on flow-off leading to connection drop at race conditions.
caif_socket checks for flow-on before transmitting and goes to sleep or
return -EAGAIN upon flow stop. Remove faulty subsequent checks on flow-off
leading to connection drop. Also fix memory leaks on some of the errors paths.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfdbgl.c
net/caif/cfdgml.c
net/caif/cfrfml.c
net/caif/cfsrvl.c
net/caif/cfutill.c
net/caif/cfvidl.c