summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/dev.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2011-11-04 10:09:49 +0200
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:49:55 -0800
commitcd877eed7bb8b046dad2e432e6b5c7a876f33256 (patch)
treef9132b5101419716145126a376457d704b71cbb4 /drivers/video/tegra/host/dev.c
parent5570f1c4cfe0365f464a8403ead4604b30de700c (diff)
video: tegra: host: Send error codes to user space
Flush needs to send error codes to user space instead of suppressing them. Bug 886411 Reviewed-on: http://git-master/r/62385 (cherry picked from commit 357f4f8c8cc31713a32a26488e7f2031e5fff842) Change-Id: I56d7e602cb3d71a17df92a09ccbd58fc71145640 Reviewed-on: http://git-master/r/63227 Reviewed-by: Varun Colbert <vcolbert@nvidia.com> Tested-by: Varun Colbert <vcolbert@nvidia.com> Rebase-Id: Rdbad35676df437b9521a8e6978510f73e7aa3844
Diffstat (limited to 'drivers/video/tegra/host/dev.c')
-rw-r--r--drivers/video/tegra/host/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/host/dev.c b/drivers/video/tegra/host/dev.c
index 084b8bb3a63a..b552d5c52606 100644
--- a/drivers/video/tegra/host/dev.c
+++ b/drivers/video/tegra/host/dev.c
@@ -340,7 +340,7 @@ static int nvhost_ioctl_channel_flush(
if (err)
nvmap_unpin_handles(ctx->nvmap, ctx->unpinarray, num_unpin);
- return 0;
+ return err;
}
static int nvhost_ioctl_channel_read_3d_reg(