staging: ks7010: fix two memory leaks on error return path
authorColin Ian King <colin.king@canonical.com>
Fri, 9 Sep 2016 15:56:38 +0000 (16:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Sep 2016 09:19:42 +0000 (11:19 +0200)
commitaeaf5d86faa5d8c64674465da544c26c97e9404a
tree3289be7e7f9b88ba56e7a201438832b52c903375
parent8defffb20854500825162d336bdd183d2d218cf9
staging: ks7010: fix two memory leaks on error return path

On the error case where there is an invalid MAC address there is
memory leak on packet and pp on the error return. Free these first
before returning to fix the leak.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c