Commit e0a449ca authored by H. Peter Anvin's avatar H. Peter Anvin

Merge branch 'core/types' into x86/x32

parents 00194b2e 189017c2
...@@ -326,7 +326,7 @@ static void sp_cleanup(void) ...@@ -326,7 +326,7 @@ static void sp_cleanup(void)
i = j * __NFDBITS; i = j * __NFDBITS;
if (i >= fdt->max_fds) if (i >= fdt->max_fds)
break; break;
set = fdt->open_fds->fds_bits[j++]; set = fdt->open_fds[j++];
while (set) { while (set) {
if (set & 1) { if (set & 1) {
struct file * file = xchg(&fdt->fd[i], NULL); struct file * file = xchg(&fdt->fd[i], NULL);
......
...@@ -379,8 +379,7 @@ int task_get_unused_fd_flags(struct binder_proc *proc, int flags) ...@@ -379,8 +379,7 @@ int task_get_unused_fd_flags(struct binder_proc *proc, int flags)
repeat: repeat:
fdt = files_fdtable(files); fdt = files_fdtable(files);
fd = find_next_zero_bit(fdt->open_fds->fds_bits, fdt->max_fds, fd = find_next_zero_bit(fdt->open_fds, fdt->max_fds, files->next_fd);
files->next_fd);
/* /*
* N.B. For clone tasks sharing a files structure, this test * N.B. For clone tasks sharing a files structure, this test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment