diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2017-07-05 19:24:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 14:53:15 +0200 |
commit | c3643b699fa22178dca307e4aca077ca338616cd (patch) | |
tree | f6b7ac003d5d4c7a64d9a90fd795b39fe9260174 /drivers/android | |
parent | a60b890f607dc6d7806afc0dc8666577faf40bb4 (diff) | |
download | linux-stable-c3643b699fa22178dca307e4aca077ca338616cd.tar.gz linux-stable-c3643b699fa22178dca307e4aca077ca338616cd.tar.bz2 linux-stable-c3643b699fa22178dca307e4aca077ca338616cd.zip |
android: binder: Use dedicated helper to access rlimit value
Use rlimit() helper instead of manually writing whole
chain from current task to rlim_cur
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/android')
-rw-r--r-- | drivers/android/binder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c index c8e9d5dfcd86..fdbde8ce5804 100644 --- a/drivers/android/binder.c +++ b/drivers/android/binder.c @@ -930,7 +930,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); |