Skip to content

Commit

Permalink
[POWERPC] Fix SPU coredump code for max_fdset removal
Browse files Browse the repository at this point in the history
    
Commit bbea9f6 removed the max_fdset
element of struct fdtable.  It appears that checking max_fds is
sufficient now.

Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Paul Mackerras committed Dec 11, 2006
1 parent dae4828 commit 39f44be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/cell/spufs/coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static int spufs_arch_notes_size(void)
struct fdtable *fdt = files_fdtable(current->files);
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)) {
struct file *file = fcheck(fd);

Expand Down

0 comments on commit 39f44be

Please sign in to comment.