video: tegra: host: Fix error handling
authorTerje Bergstrom <tbergstrom@nvidia.com>
Fri, 23 Aug 2013 11:21:08 +0000 (14:21 +0300)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:43:30 +0000 (13:43 -0700)
commit46f487c289ec2d7d4ae24869267cf54d58aabea6
treec932f5ed6714c8b6de090c8d32b317f1a2389749
parentb631b3a2e77611b6f6ee9b9e816da65ae41edb03
video: tegra: host: Fix error handling

Dusted error handling paths. Converts all IS_ERR_OR_NULL() instances
to appropriate versions IS_ERR() or check against NULL. Fixes
several calls to nvhost_memmgr_*() which treated the return value
incorrectly.

Bug 1212465

Change-Id: I764616d98d35b965335a9a2537fe3e2d555f0497
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/265476
14 files changed:
drivers/video/tegra/host/bus_client.c
drivers/video/tegra/host/gk20a/channel_gk20a.c
drivers/video/tegra/host/gk20a/clk_gk20a.c
drivers/video/tegra/host/gk20a/fifo_gk20a.c
drivers/video/tegra/host/gk20a/gk20a.c
drivers/video/tegra/host/gk20a/gr_ctx_gk20a.c
drivers/video/tegra/host/gk20a/gr_gk20a.c
drivers/video/tegra/host/gk20a/mm_gk20a.c
drivers/video/tegra/host/gk20a/pmu_gk20a.c
drivers/video/tegra/host/msenc/msenc.c
drivers/video/tegra/host/nvhost_as.c
drivers/video/tegra/host/user_hwctx.c
drivers/video/tegra/host/vi/vi.c
drivers/video/tegra/host/vic03/vic03.c