msm/qsd: smd: avoid race condition in smd channel allocation
authorBrian Swetland <swetland@google.com>
Fri, 30 Oct 2009 23:22:05 +0000 (16:22 -0700)
committerDaniel Walker <dwalker@codeaurora.org>
Wed, 12 May 2010 16:15:21 +0000 (09:15 -0700)
commit34f719b0c25cca6e11164f926fc798c25499aa96
treebe4b551d1d7d492a924240858ad822fbc760fbcc
parent7632fba05197999fb0d24776b567682ebd62f62a
msm/qsd: smd: avoid race condition in smd channel allocation

Don't mark a channel as allocated if we failed to allocate it
(perhaps the modem updated one table but not the other, etc)

Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
arch/arm/mach-msm/smd.c