From: phil.turnbull@oracle.com Date: Thu, 15 Sep 2016 16:41:44 +0000 (-0400) Subject: irda: Free skb on irda_accept error path. X-Git-Tag: v3.2.84~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b673d345f17cbad2fc9b15783ca8d0e0682db3f;p=pandora-kernel.git irda: Free skb on irda_accept error path. commit 8ab86c00e349cef9fb14719093a7f198bcc72629 upstream. 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 Signed-off-by: David S. Miller [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed