Commit c42750b0 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie
Browse files

drm/r600: fix possible NULL pointer derefernce

Reported-by: default avatarAlexander Y. Fomichev <>
Signed-off-by: default avatarAlex Deucher <>
Signed-off-by: default avatarDave Airlie <>
parent e153b70b
......@@ -538,9 +538,12 @@ int
r600_prepare_blit_copy(struct drm_device *dev, struct drm_file *file_priv)
drm_radeon_private_t *dev_priv = dev->dev_private;
int ret;
ret = r600_nomm_get_vb(dev);
if (ret)
return ret;
dev_priv->blit_vb->file_priv = file_priv;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment