Update the master status data type, as it expects the negative value
and do the operation accordingly. Also, correct the return code and
update the validation check.
CRs-Fixed: 2686717
Change-Id: I8ecae74de2995a08e532a7f0ef078d48d45a928e
Signed-off-by: Jigarkumar Zala <jzala@codeaurora.org>