Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
c272d86e
Commit
c272d86e
authored
Dec 05, 2014
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/bar: barobjs may not have an engine
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
9d18cdbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
+4
-4
No files found.
drivers/gpu/drm/nouveau/core/subdev/bar/base.c
View file @
c272d86e
...
...
@@ -42,7 +42,7 @@ nouveau_barobj_ctor(struct nouveau_object *parent,
struct
nouveau_object
**
pobject
)
{
struct
nouveau_device
*
device
=
nv_device
(
parent
);
struct
nouveau_bar
*
bar
=
(
void
*
)
engine
;
struct
nouveau_bar
*
bar
=
nouveau_bar
(
device
)
;
struct
nouveau_mem
*
mem
=
data
;
struct
nouveau_barobj
*
barobj
;
int
ret
;
...
...
@@ -69,7 +69,7 @@ nouveau_barobj_ctor(struct nouveau_object *parent,
static
void
nouveau_barobj_dtor
(
struct
nouveau_object
*
object
)
{
struct
nouveau_bar
*
bar
=
(
void
*
)
object
->
engine
;
struct
nouveau_bar
*
bar
=
nouveau_bar
(
object
)
;
struct
nouveau_barobj
*
barobj
=
(
void
*
)
object
;
if
(
barobj
->
vma
.
node
)
{
if
(
barobj
->
iomem
)
...
...
@@ -109,9 +109,9 @@ int
nouveau_bar_alloc
(
struct
nouveau_bar
*
bar
,
struct
nouveau_object
*
parent
,
struct
nouveau_mem
*
mem
,
struct
nouveau_object
**
pobject
)
{
struct
nouveau_object
*
engine
=
nv_object
(
bar
);
struct
nouveau_object
*
gpuobj
;
int
ret
=
nouveau_object_ctor
(
parent
,
engine
,
&
nouveau_barobj_oclass
,
int
ret
=
nouveau_object_ctor
(
parent
,
parent
->
engine
,
&
nouveau_barobj_oclass
,
mem
,
0
,
&
gpuobj
);
if
(
ret
==
0
)
*
pobject
=
gpuobj
;
...
...
Write
Preview
Markdown
is supported
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