]> git.baikalelectronics.ru Git - kernel.git/commit
RxRPC: do not unlock unheld spinlock in rxrpc_connect_exclusive()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 26 Jan 2014 11:39:26 +0000 (11:39 +0000)
committerDavid Howells <dhowells@redhat.com>
Sun, 26 Jan 2014 11:39:51 +0000 (11:39 +0000)
commit1a52d0b6eb106872670b541170f73f6f957c9459
tree98df624f76f1f249509274cc2496e7e62e8a69a4
parent6f901070d1e82d660134da81830d2ae10463f655
RxRPC: do not unlock unheld spinlock in rxrpc_connect_exclusive()

If rx->conn is not NULL, rxrpc_connect_exclusive() does not
acquire the transport's client lock, but it still releases it.

The patch adds locking of the spinlock to this path.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-connection.c