fbdev: ssd1307fb: potential ERR_PTR dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 23 May 2015 17:32:35 +0000 (20:32 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 27 May 2015 09:54:46 +0000 (12:54 +0300)
commitc2b00024bc6f3408b0facc87227383e633131900
tree51a58dc1f284aba81bbc1083365d0c25978da159
parent550e768c2a9932e037f2148ecddecd8a5ee0f26e
fbdev: ssd1307fb: potential ERR_PTR dereference

The error handling got shifted down a few lines from where it was
supposed to be for some reason.

Fixes: a14a7ba8cb0f ('fbdev: ssd1307fb: add backlight controls for setting the contrast')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/ssd1307fb.c