net/irda: add missing error path release_sock call
authorKees Cook <[email protected]>
Wed, 20 Mar 2013 05:19:24 +0000 (05:19 +0000)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Reported-by: Brad Spengler <[email protected]>
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
net/irda/af_irda.c