Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1681673 > unrolled thread

[PATCH 1/4] android: binder: Use dedicated helper to access rlimit value

Started byKrzysztof Opasiak <k.opasiak@samsung.com>
First post2017-07-05 19:30 +0200
Last post2017-07-05 19:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/4] android: binder: Use dedicated helper to access rlimit  value Krzysztof Opasiak <k.opasiak@samsung.com> - 2017-07-05 19:30 +0200

#1681673 — [PATCH 1/4] android: binder: Use dedicated helper to access rlimit value

FromKrzysztof Opasiak <k.opasiak@samsung.com>
Date2017-07-05 19:30 +0200
Subject[PATCH 1/4] android: binder: Use dedicated helper to access rlimit value
Message-ID<tZWhI-MR-27@gated-at.bofh.it>
Use rlimit() helper instead of manually writing whole
chain from current task to rlim_cur

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
---
 drivers/android/binder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index aae4d8d4be36..d802384ccdd3 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -472,7 +472,7 @@ static void binder_set_nice(long nice)
 		set_user_nice(current, nice);
 		return;
 	}
-	min_nice = rlimit_to_nice(current->signal->rlim[RLIMIT_NICE].rlim_cur);
+	min_nice = rlimit_to_nice(rlimit(RLIMIT_NICE));
 	binder_debug(BINDER_DEBUG_PRIORITY_CAP,
 		     "%d: nice value %ld not allowed use %ld instead\n",
 		      current->pid, nice, min_nice);
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web