diff --git a/drivers/android/binder.c b/drivers/android/binder.c index 4f7fdc2ab881..d87e0c0402c9 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -777,8 +777,8 @@ static void binder_transaction_priority(struct binder_thread *thread, desired.sched_policy = SCHED_NORMAL; } - if (node_prio.prio < t->priority.prio || - (node_prio.prio == t->priority.prio && + if (node_prio.prio < desired.prio || + (node_prio.prio == desired.prio && node_prio.sched_policy == SCHED_FIFO)) { /* * In case the minimum priority on the node is diff --git a/fs/proc/base.c b/fs/proc/base.c index db9040c4f996..2d1b980df507 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -65,6 +65,7 @@ #include #include #include +#include #include #include #include @@ -2290,7 +2291,7 @@ proc_map_files_readdir(struct file *file, struct dir_context *ctx) } p->start = vma->vm_start; - p->end = vma->vm_end; + p->end = VMA_PAD_START(vma); p->mode = vma->vm_file->f_mode; } up_read(&mm->mmap_sem);