Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
R128
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ermine
R128
Commits
f5ee92f0
Commit
f5ee92f0
authored
10 years ago
by
Ben Skeggs
Browse files
Options
Downloads
Patches
Plain Diff
drm/nouveau/core: fail creation of zero-argument objects, when arguments are passed
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3ee6f5b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/gpu/drm/nouveau/core/core/object.c
+6
-30
6 additions, 30 deletions
drivers/gpu/drm/nouveau/core/core/object.c
with
6 additions
and
30 deletions
drivers/gpu/drm/nouveau/core/core/object.c
+
6
−
30
View file @
f5ee92f0
...
...
@@ -67,15 +67,9 @@ _nouveau_object_ctor(struct nouveau_object *parent,
struct
nouveau_oclass
*
oclass
,
void
*
data
,
u32
size
,
struct
nouveau_object
**
pobject
)
{
struct
nouveau_object
*
object
;
int
ret
;
ret
=
nouveau_object_create
(
parent
,
engine
,
oclass
,
0
,
&
object
);
*
pobject
=
nv_object
(
object
);
if
(
ret
)
return
ret
;
return
0
;
if
(
size
!=
0
)
return
-
ENOSYS
;
return
nouveau_object_create
(
parent
,
engine
,
oclass
,
0
,
pobject
);
}
void
...
...
@@ -91,42 +85,24 @@ nouveau_object_destroy(struct nouveau_object *object)
kfree
(
object
);
}
static
void
_nouveau_object_dtor
(
struct
nouveau_object
*
object
)
{
nouveau_object_destroy
(
object
);
}
int
nouveau_object_init
(
struct
nouveau_object
*
object
)
{
return
0
;
}
static
int
_nouveau_object_init
(
struct
nouveau_object
*
object
)
{
return
nouveau_object_init
(
object
);
}
int
nouveau_object_fini
(
struct
nouveau_object
*
object
,
bool
suspend
)
{
return
0
;
}
static
int
_nouveau_object_fini
(
struct
nouveau_object
*
object
,
bool
suspend
)
{
return
nouveau_object_fini
(
object
,
suspend
);
}
struct
nouveau_ofuncs
nouveau_object_ofuncs
=
{
.
ctor
=
_nouveau_object_ctor
,
.
dtor
=
_
nouveau_object_d
tor
,
.
init
=
_
nouveau_object_init
,
.
fini
=
_
nouveau_object_fini
,
.
dtor
=
nouveau_object_d
estroy
,
.
init
=
nouveau_object_init
,
.
fini
=
nouveau_object_fini
,
};
int
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment