mirror of https://gitee.com/openkylin/linux.git
drm/r600: fix possible NULL pointer derefernce
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>
This commit is contained in:
parent
e153b70b89
commit
c42750b026
|
@ -538,9 +538,12 @@ int
|
||||||
r600_prepare_blit_copy(struct drm_device *dev, struct drm_file *file_priv)
|
r600_prepare_blit_copy(struct drm_device *dev, struct drm_file *file_priv)
|
||||||
{
|
{
|
||||||
drm_radeon_private_t *dev_priv = dev->dev_private;
|
drm_radeon_private_t *dev_priv = dev->dev_private;
|
||||||
|
int ret;
|
||||||
DRM_DEBUG("\n");
|
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;
|
dev_priv->blit_vb->file_priv = file_priv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue