Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228627
b: refs/heads/master
c: 587107b
h: refs/heads/master
i:
  228625: aec9fb9
  228623: 239f335
v: v3
  • Loading branch information
Ben Skeggs committed Dec 21, 2010
1 parent 92a94ec commit a66b4b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99805566d93d69b7daf2373aba9fae52a62396f4
refs/heads/master: 587107b690f567690982fb504047e7b0a6590344
5 changes: 5 additions & 0 deletions trunk/drivers/gpu/drm/nouveau/nouveau_notifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,15 @@ int
nouveau_ioctl_notifier_alloc(struct drm_device *dev, void *data,
struct drm_file *file_priv)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct drm_nouveau_notifierobj_alloc *na = data;
struct nouveau_channel *chan;
int ret;

/* completely unnecessary for these chipsets... */
if (unlikely(dev_priv->card_type >= NV_C0))
return -EINVAL;

chan = nouveau_channel_get(dev, file_priv, na->channel);
if (IS_ERR(chan))
return PTR_ERR(chan);
Expand Down

0 comments on commit a66b4b5

Please sign in to comment.