Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe-x86
Commits
587107b6
Commit
587107b6
authored
Nov 24, 2010
by
Ben Skeggs
Browse files
drm/nvc0: reject the notifier_alloc ioctl
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
99805566
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/gpu/drm/nouveau/nouveau_notifier.c
View file @
587107b6
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment