Does the attached patch happen to fix the problem? -- tejun
--- fs/sysfs/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: work/fs/sysfs/dir.c =================================================================== --- work.orig/fs/sysfs/dir.c +++ work/fs/sysfs/dir.c @@ -1010,7 +1010,7 @@ static int sysfs_readdir(struct file * f if (filldir(dirent, "..", 2, filp->f_pos, ino, DT_DIR) == 0) filp->f_pos++; } - if ((filp->f_pos > 1) && (filp->f_pos < UINT_MAX)) { + if ((filp->f_pos > 1) && (filp->f_pos < INT_MAX)) { mutex_lock(&sysfs_mutex); /* Skip the dentries we have already reported */ @@ -1031,7 +1031,7 @@ static int sysfs_readdir(struct file * f break; } if (!pos) - filp->f_pos = UINT_MAX; + filp->f_pos = INT_MAX; mutex_unlock(&sysfs_mutex); } return 0;
- Follow-Ups:
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: Cornelia Huck <cornelia.huck@de.ibm.com>
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- References:
- [PATCH 5/5] sysfs: make sysfs_addrm_finish() return void
- From: Tejun Heo <htejun@gmail.com>
- [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: ebiederm@xmission.com (Eric W. Biederman)
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: Cornelia Huck <cornelia.huck@de.ibm.com>
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: ebiederm@xmission.com (Eric W. Biederman)
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: Cornelia Huck <cornelia.huck@de.ibm.com>
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: ebiederm@xmission.com (Eric W. Biederman)
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: Cornelia Huck <cornelia.huck@de.ibm.com>
- Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- From: Cornelia Huck <cornelia.huck@de.ibm.com>
- [PATCH 5/5] sysfs: make sysfs_addrm_finish() return void
- Prev by Date: UART misbehaves under Linkstation/KuroBoxHG
- Next by Date: Re: [PATCH] drop unneeded variable in amd_apic_timer_broken
- Previous by thread: Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- Next by thread: Re: [PATCH 0/25] Sysfs cleanups & tagged directory support
- Index(es):
![]() |