View | Details | Raw Unified | Return to bug 94160
Collapse All | Expand All

(-)linux-2.6.5-7.139/fs/sysfs/file.c.orig (+2 lines)
Lines 114-119 static int flush_read_buffer(struct sysf Link Here
114
{
114
{
115
	int error;
115
	int error;
116
116
117
	if (*ppos > buffer->count)
118
		return 0;
117
	if (count > (buffer->count - *ppos))
119
	if (count > (buffer->count - *ppos))
118
		count = buffer->count - *ppos;
120
		count = buffer->count - *ppos;
119
121

Return to bug 94160