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

Commit 3ab5bbee authored by Ram Nagesh's avatar Ram Nagesh Committed by Gerrit - the friendly Code Review server
Browse files

msm: synx: Handling the base in idr_alloc



In idr_alloc the base value is becoming less than zero after some
iteration.so we are make it positive when the value is less than zero..

Change-Id: Iafa53f9f09a9ac029e57b8deee0e0b30b7851acd
Signed-off-by: default avatarRam Nagesh <quic_ramnages@quicinc.com>
parent b6abc793
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -592,7 +592,7 @@ void *synx_from_handle(s32 synx_obj)
		return NULL;
	}

	base = current->tgid << 16;
	base = (current->tgid << 16) & 0x7FFFFFFF;

	if ((base >> 16) != (synx_obj >> 16)) {
		pr_err("current client: %d, base: %d, synx_obj: 0x%x\n",
@@ -619,7 +619,7 @@ void synx_release_handle(void *pObj)

s32 synx_create_handle(void *pObj)
{
	s32 base = current->tgid << 16;
	s32 base = (current->tgid << 16) & 0x7FFFFFFF;
	s32 id;
	struct synx_handle_entry *entry;
	unsigned long flags;