CHROMIUM: ipu3-imgu: Fix buffer queue corruption

imgu buffer queue is released after stream off.
If buffer done interrupt arise after stream off,
it will cause buffer queue corruption when deleting
buffer from an empty queue.
This patch ensure pending interrupts are handled
during stream off before the buffer queue is
released.

BUG=b:63850250
TEST=Test WF & UF camera functionality on Soraka

Change-Id: I648da8b380d77409cdc2c266acc32ad123ba9d74
Signed-off-by: Tianshu Qiu <tian.shu.qiu@intel.com>
Signed-off-by: Chiranjeevi Rapolu <chiranjeevi.rapolu@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/648259
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
1 file changed