[21/74] sysfs: fix race between readdir and lseek

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Ming Lei commit 991f76f837bf22c5bb07261cfd86525a0a96650c upstream. While readdir() is running, lseek() may set filp->f_pos as zero, then may leave filp->private_data pointing to one

[21/74] sysfs: fix race between readdir and lseek

2013-04-07 Thread Ben Hutchings
3.2.43-rc1 review patch. If anyone has any objections, please let me know. -- From: Ming Lei ming@canonical.com commit 991f76f837bf22c5bb07261cfd86525a0a96650c upstream. While readdir() is running, lseek() may set filp-f_pos as zero, then may leave filp-private_data