diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-12-05 11:46:28 -0600 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-12-06 21:45:28 +0100 |
commit | 89f3f35620c7f244880485de11079cb4d98ed604 (patch) | |
tree | 266b625bfd7d9371a0022c944b3800e7dba5f783 /drivers/net/hyperv | |
parent | ec17f0341d6a2c8b8a036999e9fd735a1a6888f4 (diff) |
drm/fb-helper: Fix potential NULL pointer dereference
fb_helper is being dereferenced before it is null checked,
hence there is a potential null pointer dereference.
Fix this by moving the pointer dereference after fb_helper
has been null checked.
This issue was detected with the help of Coccinelle.
Fixes: c777990fb45b ("drm/fb-helper: Handle function NULL argument")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171205174628.GA31189@embeddedor.com
Diffstat (limited to 'drivers/net/hyperv')
0 files changed, 0 insertions, 0 deletions