From: Dan Carpenter Date: Fri, 16 Dec 2011 20:25:29 +0000 (+0300) Subject: NFC: double unlock in nfc_llcp_recv_connect() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=341ee4349f31e42fb0eb20d340d15309ac760308;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Samuel Ortiz Signed-off-by: John W. Linville --- diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index 67756b23eac5..f99d6b4658ed 100644 --- a/net/nfc/llcp/llcp.c +++ b/net/nfc/llcp/llcp.c @@ -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;