Commit 5334075c authored by Subramaniam C.A's avatar Subramaniam C.A Committed by Hari Kanigeri

SYSLINK NOTIFY MODULE Patch to fix the WARN_ON in notify_register()

Porting error. the check is switched.
Signed-off-by: default avatarC A Subramaniam <subramaniam.ca@ti.com>
parent 025eb841
......@@ -62,7 +62,7 @@ void notify_get_config(struct notify_config *cfg)
if (atomic_cmpmask_and_lt(&(notify_state.ref_count),
NOTIFY_MAKE_MAGICSTAMP(0),
NOTIFY_MAKE_MAGICSTAMP(1)) == false)
NOTIFY_MAKE_MAGICSTAMP(1)) == true)
memcpy(cfg, &notify_state.def_cfg,
sizeof(struct notify_config));
else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment