net/irda: add missing error path release_sock call
authorKees Cook <keescook@chromium.org>
Wed, 20 Mar 2013 05:19:24 +0000 (05:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2013 16:23:13 +0000 (12:23 -0400)
commit896ee0eee6261e30c3623be931c3f621428947df
treedfd1a4415493362da42b7899a2e0aee51d220498
parentfa90b077d72b4ea92706e86fdff7b5dca294caa3
net/irda: add missing error path release_sock call

This makes sure that release_sock is called for all error conditions in
irda_getsockopt.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reported-by: Brad Spengler <spender@grsecurity.net>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/af_irda.c