NFC: double unlock in nfc_llcp_recv_connect()

We unlock inside the if block on the other side of this if else
statement.  It could result in calling mutex_unlock() twice.

Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Samuel Ortiz <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
Dan Carpenter 2011-12-16 23:25:29 +03:00 • committed by John W. Linville
commit 341ee4349f

View file

@ -554,11 +554,9 @@ static void nfc_llcp_recv_connect(struct nfc_llcp_local *local,
goto enqueue;
}
}
mutex_unlock(&local->socket_lock);
}
mutex_unlock(&local->socket_lock);
reason = LLCP_DM_NOBOUND;
goto fail;