Camera3: stop_channel should be after stop_stream

There is a race condition if stop_stream happens after
stop_channel. stop_channel de-allocates all stream buffers.
If at the same time, there is a buffer callback ongoing for
one of the streams, the callback may acccess an already
freed buffer.

Bug: 14142593
Bug: 14028116
Change-Id: I9e9342a02c979ca8854beb16570847e51e9d7645
3 files changed
tree: a93dee82f2053ecbfcf91e6dac41c220e6c356e4
  1. camera/