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)
committerSebastian Reichel <sre@kernel.org>
Fri, 21 Apr 2017 15:58:45 +0000 (17:58 +0200)
commit3026050179a3a9a6f5c892c414b5e36ecf092081
tree58717781486b999bcade01632288a373a3885a14
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
HSI: ssi_protocol: double free in ssip_pn_xmit()

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>
drivers/hsi/clients/ssi_protocol.c