path: root/drivers/gpu/drm/vmwgfx
diff options
authorWei Yongjun <>2018-03-20 14:20:30 +0000
committerNeil Armstrong <>2018-03-20 17:15:40 +0100
commitacaa3f13b8dd77da3c6c0fe18cb1159eef7ea286 (patch)
tree0062ecc7d7aabc995ae2c976bd0afea09c50e279 /drivers/gpu/drm/vmwgfx
parentddc389f5a4abb4c0c91202cd6dc09a28b9e2d82c (diff)
drm/meson: Fix potential NULL dereference in meson_drv_bind_master()
platform_get_resource_byname() may fail and return NULL, so we should better check it's return value to avoid a NULL pointer dereference a bit later in the code. This is detected by Coccinelle semantic patch. @@ expression pdev, res, n, t, e, e1, e2; @@ res = platform_get_resource_byname(pdev, t, n); + if (!res) + return -EINVAL; ... when != res == NULL e = devm_ioremap(e1, res->start, e2); Signed-off-by: Wei Yongjun <> Signed-off-by: Neil Armstrong <> Acked-by: Neil Armstrong <> Link:
Diffstat (limited to 'drivers/gpu/drm/vmwgfx')
0 files changed, 0 insertions, 0 deletions