Emil Velikov 789d4c300e drm/msm: don't deref error pointer in the msm_fbdev_create error path
Currently the error pointer returned by msm_alloc_stolen_fb gets passed
to drm_framebuffer_remove. The latter handles only NULL pointers, thus
a nasty crash will occur.

Drop the unnecessary fail label and the associated checks - both err and
fb will be set at this stage.

Cc: Rob Clark <robdclark@gmail.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-04-19 10:09:41 -04:00
..
2018-01-30 18:05:25 +01:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-02-06 09:59:40 -08:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2017-12-27 19:00:09 -05:00
2018-03-14 10:59:16 +10:00
2017-11-15 20:42:10 -08:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-02-28 15:08:56 -05:00
2018-03-16 15:51:52 -07:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2017-12-19 21:37:24 +10:00
2018-03-28 14:30:41 +10:00
2017-11-15 20:42:10 -08:00
2018-01-25 11:42:25 +10:00
2018-01-24 15:49:04 -05:00