video: tegra: dc: fix explicit null dereference
authorDeepak Nibade <dnibade@nvidia.com>
Mon, 3 Dec 2012 13:07:24 +0000 (18:07 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:28:12 +0000 (01:28 -0700)
commit545df840f6b132b829b8ee108ada4c99b0ceaacb
tree0c3d15522e45cf82720f90a908b3c2b237054745
parent946d3f3ae66d3a7ea802330bf2f58c90188eba08
video: tegra: dc: fix explicit null dereference

Fix Coverity issue
In error path, dc->fb is assigned to NULL and
then is referenced in code to follow
Modify the error path to have correct roll back
Coverity id : 21156

Bug 1046331

Change-Id: Ice2460e1a204e50b98c6f58bded85870d180e785
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/168077
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/video/tegra/dc/dc.c