msm: rpm-smd: Fix bug of accessing a free'd data structure

In msm_rpm_wait_for_ack(), the return value is obtained that a data
structure that is free'd. Fix the issue by returning the value stored in
a temporary variable.

CRs-fixed: 429943
Change-Id: I73e598c159df29d824b0bc68c96e6831f0c61f2f
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
1 file changed