Bugzilla – Attachment #40175: The patch I was using against 2.6.5-7.139 for bug #94160
{
int error;
if (*ppos > buffer->count)
return 0;
if (count > (buffer->count - *ppos))
count = buffer->count - *ppos;