Commit 39f44be3 authored by Paul Mackerras's avatar Paul Mackerras

[POWERPC] Fix SPU coredump code for max_fdset removal

    
Commit bbea9f69 removed the max_fdset
element of struct fdtable.  It appears that checking max_fds is
sufficient now.
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent dae4828d
...@@ -147,7 +147,7 @@ static int spufs_arch_notes_size(void) ...@@ -147,7 +147,7 @@ static int spufs_arch_notes_size(void)
struct fdtable *fdt = files_fdtable(current->files); struct fdtable *fdt = files_fdtable(current->files);
int size = 0, fd; int size = 0, fd;
for (fd = 0; fd < fdt->max_fdset && fd < fdt->max_fds; fd++) { for (fd = 0; fd < fdt->max_fds; fd++) {
if (FD_ISSET(fd, fdt->open_fds)) { if (FD_ISSET(fd, fdt->open_fds)) {
struct file *file = fcheck(fd); struct file *file = fcheck(fd);
......
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