diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-26 00:57:15 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-26 00:57:26 -0500 |
commit | e0a449cab53814b73faf824284a6b3809b9b1316 (patch) | |
tree | 47f2b554b3862e7f5ccc8bba6c8c51eac9b34d5c | |
parent | 00194b2e845da29395ad00c13a884d9acb9306b5 (diff) | |
parent | 189017c25c8497760c89646c06297c37d6cde072 (diff) |
Merge branch 'core/types' into x86/x32
-rw-r--r-- | arch/mips/kernel/kspd.c | 2 | ||||
-rw-r--r-- | drivers/staging/android/binder.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/kernel/kspd.c b/arch/mips/kernel/kspd.c index 29811f043399..84d0639e4580 100644 --- a/arch/mips/kernel/kspd.c +++ b/arch/mips/kernel/kspd.c | |||
@@ -326,7 +326,7 @@ static void sp_cleanup(void) | |||
326 | i = j * __NFDBITS; | 326 | i = j * __NFDBITS; |
327 | if (i >= fdt->max_fds) | 327 | if (i >= fdt->max_fds) |
328 | break; | 328 | break; |
329 | set = fdt->open_fds->fds_bits[j++]; | 329 | set = fdt->open_fds[j++]; |
330 | while (set) { | 330 | while (set) { |
331 | if (set & 1) { | 331 | if (set & 1) { |
332 | struct file * file = xchg(&fdt->fd[i], NULL); | 332 | struct file * file = xchg(&fdt->fd[i], NULL); |
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index 35dd9c370e55..9446f0185f5e 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c | |||
@@ -379,8 +379,7 @@ int task_get_unused_fd_flags(struct binder_proc *proc, int flags) | |||
379 | 379 | ||
380 | repeat: | 380 | repeat: |
381 | fdt = files_fdtable(files); | 381 | fdt = files_fdtable(files); |
382 | fd = find_next_zero_bit(fdt->open_fds->fds_bits, fdt->max_fds, | 382 | fd = find_next_zero_bit(fdt->open_fds, fdt->max_fds, files->next_fd); |
383 | files->next_fd); | ||
384 | 383 | ||
385 | /* | 384 | /* |
386 | * N.B. For clone tasks sharing a files structure, this test | 385 | * N.B. For clone tasks sharing a files structure, this test |