[media] helene: fix memory leak when heleno_x_pon fails
authorColin Ian King <colin.king@canonical.com>
Sat, 13 Aug 2016 18:16:54 +0000 (15:16 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 19:54:54 +0000 (16:54 -0300)
commitfd3223966cac9e6c3751b43c500963e9c71356f0
tree1178bece46366c09120506f77163eced6ab13811
parent5e015c0e6d1e83bff625f2596d8e123f616002fe
[media] helene: fix memory leak when heleno_x_pon fails

The error return path of failed calls to heleno_x_pon leak
memory because priv is not kfree'd.  Fix this by kfree'ing
priv before returning.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/helene.c