summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2006-12-11 15:13:37 +1100
committerPaul Mackerras <paulus@samba.org>2006-12-11 15:13:37 +1100
commit39f44be375d07a977ba68f900c87cea97cb05f4a (patch)
treeb430098777d9c8a897779dba513a37d2b5217403 /arch
parentdae4828d66ac6db353dee213c594257929a310cb (diff)
downloadlinux-3.10-39f44be375d07a977ba68f900c87cea97cb05f4a.tar.gz
linux-3.10-39f44be375d07a977ba68f900c87cea97cb05f4a.tar.bz2
linux-3.10-39f44be375d07a977ba68f900c87cea97cb05f4a.zip
[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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/coredump.c b/arch/powerpc/platforms/cell/spufs/coredump.c
index 26945c491f6..725e1956115 100644
--- a/arch/powerpc/platforms/cell/spufs/coredump.c
+++ b/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);