Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b197fac4 authored by Patrick Daly's avatar Patrick Daly
Browse files

soc: qcom: mem-offline: Check return value from mbox_send_msg properly



mbox_send_msg returns a value >= 0 on success, and a negative value
on failure.

Change-Id: I9fe56d5fddda0d6abb8dd5eb95743f12adac9eef
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent b21e3eb4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ static int aop_send_msg(unsigned long addr, bool online)

	pkt.size = MAX_LEN;
	pkt.data = mbox_msg;
	return mbox_send_message(mailbox.mbox, &pkt);
	return (mbox_send_message(mailbox.mbox, &pkt) < 0);
}

static int mem_event_callback(struct notifier_block *self,