projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/nv50: fix 0x100c90 init for NVAF
[cascardo/linux.git]
/
drivers
/
gpu
/
drm
/
nouveau
/
nouveau_notifier.c
diff --git
a/drivers/gpu/drm/nouveau/nouveau_notifier.c
b/drivers/gpu/drm/nouveau/nouveau_notifier.c
index
2cc59f8
..
2c5a1f6
100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_notifier.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_notifier.c
@@
-185,11
+185,11
@@
nouveau_ioctl_notifier_alloc(struct drm_device *dev, void *data,
struct nouveau_channel *chan;
int ret;
struct nouveau_channel *chan;
int ret;
- NOUVEAU_GET_USER_CHANNEL_WITH_RETURN(na->channel, file_priv, chan);
+ chan = nouveau_channel_get(dev, file_priv, na->channel);
+ if (IS_ERR(chan))
+ return PTR_ERR(chan);
ret = nouveau_notifier_alloc(chan, na->handle, na->size, &na->offset);
ret = nouveau_notifier_alloc(chan, na->handle, na->size, &na->offset);
- if (ret)
- return ret;
-
- return 0;
+ nouveau_channel_put(&chan);
+ return ret;
}
}