|
@@ -885,11 +885,12 @@ int
|
|
nouveau_gpuobj_sw_new(struct nouveau_channel *chan, int class,
|
|
nouveau_gpuobj_sw_new(struct nouveau_channel *chan, int class,
|
|
struct nouveau_gpuobj **gpuobj_ret)
|
|
struct nouveau_gpuobj **gpuobj_ret)
|
|
{
|
|
{
|
|
- struct drm_nouveau_private *dev_priv = chan->dev->dev_private;
|
|
|
|
|
|
+ struct drm_nouveau_private *dev_priv;
|
|
struct nouveau_gpuobj *gpuobj;
|
|
struct nouveau_gpuobj *gpuobj;
|
|
|
|
|
|
if (!chan || !gpuobj_ret || *gpuobj_ret != NULL)
|
|
if (!chan || !gpuobj_ret || *gpuobj_ret != NULL)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
+ dev_priv = chan->dev->dev_private;
|
|
|
|
|
|
gpuobj = kzalloc(sizeof(*gpuobj), GFP_KERNEL);
|
|
gpuobj = kzalloc(sizeof(*gpuobj), GFP_KERNEL);
|
|
if (!gpuobj)
|
|
if (!gpuobj)
|