[PATCH AUTOSEL 4.4 16/30] video: goldfishfb: fix memory leak on driver remove

2018-09-06 Thread Sasha Levin
From: Anton Vasilyev [ Upstream commit 5958fde72d04e7b8c6de3669d1f794a90997e3eb ] goldfish_fb_probe() allocates memory for fb, but goldfish_fb_remove() does not have deallocation of fb, which leads to memory leak on probe/remove. The patch adds deallocation into goldfish_fb_remove(). Found by

[PATCH AUTOSEL 4.4 16/30] video: goldfishfb: fix memory leak on driver remove

2018-09-06 Thread Sasha Levin
From: Anton Vasilyev [ Upstream commit 5958fde72d04e7b8c6de3669d1f794a90997e3eb ] goldfish_fb_probe() allocates memory for fb, but goldfish_fb_remove() does not have deallocation of fb, which leads to memory leak on probe/remove. The patch adds deallocation into goldfish_fb_remove(). Found by