Skip to content

Commit

Permalink
drm/r600: fix possible NULL pointer derefernce
Browse files Browse the repository at this point in the history
Reported-by: Alexander Y. Fomichev <git.user@gmail.com>
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Jul 21, 2010
1 parent e153b70 commit c42750b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/gpu/drm/radeon/r600_blit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
DRM_DEBUG("\n");

r600_nomm_get_vb(dev);
ret = r600_nomm_get_vb(dev);
if (ret)
return ret;

dev_priv->blit_vb->file_priv = file_priv;

Expand Down

0 comments on commit c42750b

Please sign in to comment.