From: Ganesh Mahendran Date: Tue, 26 Sep 2017 09:56:25 +0000 (+0800) Subject: ANDROID: binder: fix node sched policy calculation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ff26505d4665def86c286a9abe28bba2c93fcaac;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ANDROID: binder: fix node sched policy calculation We should use FLAT_BINDER_FLAG_SCHED_POLICY_MASK as the mask to calculate sched policy. Change-Id: Ic252fd7c68495830690130d792802c02f99fc8fc Signed-off-by: Ganesh Mahendran --- diff --git a/drivers/android/binder.c b/drivers/android/binder.c index fbf044ff73a3..99a88c2c0f55 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -1302,7 +1302,7 @@ static struct binder_node *binder_init_node_ilocked( node->cookie = cookie; node->work.type = BINDER_WORK_NODE; priority = flags & FLAT_BINDER_FLAG_PRIORITY_MASK; - node->sched_policy = (flags & FLAT_BINDER_FLAG_PRIORITY_MASK) >> + node->sched_policy = (flags & FLAT_BINDER_FLAG_SCHED_POLICY_MASK) >> FLAT_BINDER_FLAG_SCHED_POLICY_SHIFT; node->min_priority = to_kernel_prio(node->sched_policy, priority); node->accept_fds = !!(flags & FLAT_BINDER_FLAG_ACCEPTS_FDS);