]> git.baikalelectronics.ru Git - kernel.git/commit
[media] gs1662: drop kfree for memory allocated with devm_kzalloc
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 21 Sep 2016 13:09:39 +0000 (10:09 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 24 Oct 2016 19:59:08 +0000 (17:59 -0200)
commit6a2256e85572bf52b89463444e2f7a2410c61cdd
tree798604b70206ee2c82a1fc7c0d3bffb961a14031
parent17a5b02ec1ced1063f11f50c08f6bca460ea00c2
[media] gs1662: drop kfree for memory allocated with devm_kzalloc

It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.

Fixes: 9085bd2cf588 ("[media] Add GS1662 driver, a video serializer")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/spi/gs1662.c