video: ssd1307fb: fix null pointer dereference on error
On error, a goto may jump over the initialization of vmem and free the
uninitialized value during clean up. Fix this.

Found by compiling the code with clang.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 0d26ce1 commit ed694c06e2b1d71711186889be80974d112bd4b4
@Ahmad Fatoum Ahmad Fatoum authored on 29 Apr 2020
Sascha Hauer committed on 4 May 2020
Showing 1 changed file
View
drivers/video/ssd1307fb.c