video: vt8500: fix error handling in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 2 Dec 2013 08:11:18 +0000 (11:11 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 4 Dec 2013 08:50:16 +0000 (10:50 +0200)
commit46ac29568e63c9da9c15804648d3ed8c25e2dc44
tree01ec9c3f2f2d174ade7d3986bd21d3f2191e5928
parent5a0973f33b4e6a10227b3d285ff2b0777730d298
video: vt8500: fix error handling in probe()

We shouldn't kfree(fbi) because that was allocated with devm_kzalloc().
There were several error paths which returned directly instead of
releasing resources.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/vt8500lcdfb.c