Skip to content

Commit b5704b7

Browse files
yzkqfllpundiramit
authored andcommitted
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 <opensource.ganesh@gmail.com>
1 parent b8b0268 commit b5704b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/android/binder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ static struct binder_node *binder_init_node_ilocked(
13031303
node->cookie = cookie;
13041304
node->work.type = BINDER_WORK_NODE;
13051305
priority = flags & FLAT_BINDER_FLAG_PRIORITY_MASK;
1306-
node->sched_policy = (flags & FLAT_BINDER_FLAG_PRIORITY_MASK) >>
1306+
node->sched_policy = (flags & FLAT_BINDER_FLAG_SCHED_POLICY_MASK) >>
13071307
FLAT_BINDER_FLAG_SCHED_POLICY_SHIFT;
13081308
node->min_priority = to_kernel_prio(node->sched_policy, priority);
13091309
node->accept_fds = !!(flags & FLAT_BINDER_FLAG_ACCEPTS_FDS);

0 commit comments

Comments
 (0)