Skip to content

Commit

Permalink
Merge "msm: mdss: compat: avoid overrwriting err code from ioctl"
Browse files Browse the repository at this point in the history
  • Loading branch information
Linux Build Service Account authored and Gerrit - the friendly Code Review server committed Apr 24, 2014
2 parents 0534c67 + 29acad3 commit 35188fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/video/msm/mdss/mdss_compat_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -2513,8 +2513,9 @@ int mdss_compat_overlay_ioctl(struct fb_info *info, unsigned int cmd,
} else {
ret = mdss_fb_do_ioctl(info, cmd,
(unsigned long) ovlist);
ret = __to_user_mdp_overlaylist(ovlist32, ovlist,
layers_head);
if (!ret)
ret = __to_user_mdp_overlaylist(ovlist32,
ovlist, layers_head);
}
break;
case MSMFB_OVERLAY_UNSET:
Expand Down

0 comments on commit 35188fa

Please sign in to comment.