[22/74] sysfs: handle failure path correctly for readdir()

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 e5110f411d2ee35bf8d202ccca2e89c633060dca upstream. In case of 'if (filp->f_pos == 0 or 1)' of sysfs_readdir(), the failure from filldir() isn't handled, and the reference

[22/74] sysfs: handle failure path correctly for readdir()

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 e5110f411d2ee35bf8d202ccca2e89c633060dca upstream. In case of 'if (filp-f_pos == 0 or 1)' of sysfs_readdir(), the failure from filldir() isn't handled,