[PORT FROM R2]Fix spinlock holes in tty_buffer.c
authorXu, Feng <feng.xu@intel.com>
Fri, 9 Mar 2012 08:48:55 +0000 (16:48 +0800)
committerbuildbot <buildbot@intel.com>
Tue, 13 Mar 2012 19:52:57 +0000 (12:52 -0700)
commit7b0497e2a9fe02ae1bc59d5d9fa466a0c755efd6
treea1207380a05c92c8f96ac4cb96f6f2af8c3eded9
parent46884251665ec987185644f32528d0765b2f11ac
[PORT FROM R2]Fix spinlock holes in tty_buffer.c

BZ: 26164

The tty_buffer_request_room is well protected, while after it return,
it release the port->lock, so the buf.tail is not protected.

Change-Id: I302f78b42c297e16ccf3b93a78254cc3f900326f
Orig-Change-Id: I0e5571803993a436316702b39cf987af1d2a2415
Signed-off-by: Even Xu <feng.xu@intel.com>
Reviewed-on: http://android.intel.com:8080/38084
Reviewed-by: Du, Alek <alek.du@intel.com>
Tested-by: Wang, Zhifeng <zhifeng.wang@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/tty/tty_buffer.c