irda: Free skb on irda_accept error path.
authorphil.turnbull@oracle.com <phil.turnbull@oracle.com>
Thu, 15 Sep 2016 16:41:44 +0000 (12:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2016 13:59:31 +0000 (09:59 -0400)
commit8ab86c00e349cef9fb14719093a7f198bcc72629
treebf17b411a164736fca71a74b42b7067b25709bce
parent20c64d5cd5a2bdcdc8982a06cb05e5e1bd851a3d
irda: Free skb on irda_accept error path.

skb is not freed if newsk is NULL. Rework the error path so free_skb is
unconditionally called on function exit.

Fixes: c3ea9fa27413 ("[IrDA] af_irda: IRDA_ASSERT cleanups")
Signed-off-by: Phil Turnbull <phil.turnbull@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/af_irda.c