Gfx-Display: fixed a potential panic issue.
authorAustin Hu <austin.hu@intel.com>
Tue, 13 Dec 2011 13:33:18 +0000 (21:33 +0800)
committerbuildbot <buildbot@intel.com>
Fri, 23 Dec 2011 16:45:02 +0000 (08:45 -0800)
commit8f3511d88f7526e263e705a8caeaeb86c76a4c11
tree86f55af8e4fddb3a2442a8255e0b96db7959ebc6
parent6d36afe27869874fc788febde3ef18b470a78597
Gfx-Display: fixed a potential panic issue.

BZ: 17268

When HDMI flip chain isn't initialized, de-queue buffer from it would
cause panic as its buffer number may be 0.

Fixed by checking whether the flip chain is initialized, before getting
the buffer handle.

Change-Id: I61d9f17bd484c352b2039a61b99b6947f7c36347
Signed-off-by: Austin Hu <austin.hu@intel.com>
Signed-off-by: Tong Bo <box.tong@intel.com>
Reviewed-on: http://android.intel.com:8080/27729
Reviewed-by: Xu, Randy <randy.xu@intel.com>
Tested-by: Xu, Randy <randy.xu@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/mrst/drv/psb_drv.c