crypto: msm: Fix several race condition issues in crypto drivers

Check areq before referencing, replace xchg to automic_xchg and
verify return values of set key during SHA operations.

Change-Id: Ife01372ba4990bfefe52b82db4ab33ef76190944
Signed-off-by: Brahmaji K <bkomma@codeaurora.org>
Signed-off-by: Shivaprasad Hongal <shongal@codeaurora.org>
3 files changed