Bladeren bron

[POWERPC] Fix SPU coredump code for max_fdset removal

Commit bbea9f69668a3d0cf9feba15a724cd02896f8675 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>

Paul Mackerras 18 jaren geleden
bovenliggende
commit
39f44be375
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      arch/powerpc/platforms/cell/spufs/coredump.c

+ 1 - 1
arch/powerpc/platforms/cell/spufs/coredump.c

@@ -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);