diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2018-03-28 19:22:16 +0300 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2018-04-19 17:09:41 +0300 |
commit | 789d4c300e10eb2096ee83c3497118e67ccc951e (patch) | |
tree | 954c849f82d4fffd55c1f20256cf22650bd76502 /tools/perf/util/c++/clang.cpp | |
parent | a4af89286f8fc382459308764ea05935dc477cdc (diff) | |
download | linux-789d4c300e10eb2096ee83c3497118e67ccc951e.tar.xz |
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>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions