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
Kirill Smelkov
linux
Commits
37033a76
Commit
37033a76
authored
Dec 13, 2013
by
Rob Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/msm/mdp5: fix ref leaks in error paths
Signed-off-by:
Rob Clark
<
robdclark@gmail.com
>
parent
7896052d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
+6
-1
No files found.
drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c
View file @
37033a76
...
@@ -296,6 +296,7 @@ static int mdp5_crtc_mode_set(struct drm_crtc *crtc,
...
@@ -296,6 +296,7 @@ static int mdp5_crtc_mode_set(struct drm_crtc *crtc,
x
<<
16
,
y
<<
16
,
x
<<
16
,
y
<<
16
,
mode
->
hdisplay
<<
16
,
mode
->
vdisplay
<<
16
);
mode
->
hdisplay
<<
16
,
mode
->
vdisplay
<<
16
);
if
(
ret
)
{
if
(
ret
)
{
drm_framebuffer_unreference
(
crtc
->
fb
);
dev_err
(
crtc
->
dev
->
dev
,
"%s: failed to set mode on plane: %d
\n
"
,
dev_err
(
crtc
->
dev
->
dev
,
"%s: failed to set mode on plane: %d
\n
"
,
mdp5_crtc
->
name
,
ret
);
mdp5_crtc
->
name
,
ret
);
return
ret
;
return
ret
;
...
@@ -343,11 +344,15 @@ static int mdp5_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
...
@@ -343,11 +344,15 @@ static int mdp5_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
0
,
0
,
mode
->
hdisplay
,
mode
->
vdisplay
,
0
,
0
,
mode
->
hdisplay
,
mode
->
vdisplay
,
x
<<
16
,
y
<<
16
,
x
<<
16
,
y
<<
16
,
mode
->
hdisplay
<<
16
,
mode
->
vdisplay
<<
16
);
mode
->
hdisplay
<<
16
,
mode
->
vdisplay
<<
16
);
if
(
ret
)
{
drm_framebuffer_unreference
(
crtc
->
fb
);
return
ret
;
}
update_fb
(
crtc
,
crtc
->
fb
);
update_fb
(
crtc
,
crtc
->
fb
);
update_scanout
(
crtc
,
crtc
->
fb
);
update_scanout
(
crtc
,
crtc
->
fb
);
return
ret
;
return
0
;
}
}
static
void
mdp5_crtc_load_lut
(
struct
drm_crtc
*
crtc
)
static
void
mdp5_crtc_load_lut
(
struct
drm_crtc
*
crtc
)
...
...
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