commit | 8ab86c00e349cef9fb14719093a7f198bcc72629 | [log] [tgz] |
---|---|---|
author | phil.turnbull@oracle.com <phil.turnbull@oracle.com> | Thu Sep 15 12:41:44 2016 -0400 |
committer | David S. Miller <davem@davemloft.net> | Sat Sep 17 09:59:31 2016 -0400 |
tree | bf17b411a164736fca71a74b42b7067b25709bce | |
parent | 20c64d5cd5a2bdcdc8982a06cb05e5e1bd851a3d [diff] |
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>