HSI: ssi_protocol: double free in ssip_pn_xmit()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 21 Apr 2017 10:39:09 +0000 (13:39 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Mar 2018 10:00:12 +0000 (11:00 +0100)
commit2b09da0e7718bc7bd203b9ea62c21d7a088dbe98
tree41a4e5e53f6217074dff1525153d23b542341a1f
parent089f13786bdc483d0ff54367d9dbe0dd19746481
HSI: ssi_protocol: double free in ssip_pn_xmit()

[ Upstream commit 3026050179a3a9a6f5c892c414b5e36ecf092081 ]

If skb_pad() fails then it frees skb and we don't need to free it again
at the end of the function.

Fixes: dc7bf5d7 ("HSI: Introduce driver for SSI Protocol")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hsi/clients/ssi_protocol.c