platform: goldfish: pipe: don't log when dropping PIPE_ERROR_AGAIN
authorGreg Hackmann <ghackmann@google.com>
Wed, 6 Jan 2016 14:05:55 +0000 (14:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2016 07:34:36 +0000 (23:34 -0800)
commit25dd0f407307c54de5025250ca1dfbd4bdbb2fba
tree4e7c832bcb3cb3e135d1f8e2262f4797fd32050f
parent91a18a414185a2b937e2cc8bf0cc32de1863d11a
platform: goldfish: pipe: don't log when dropping PIPE_ERROR_AGAIN

On PIPE_ERROR_AGAIN, just stopping in the middle of a transfer and
returning the number of bytes actually handled is the right behavior.

Other errors should be returned on the next read() or write() call.
Continue logging those until we confirm nothing actually relies on the
existing (wrong) behavior of dropping errors on the floor.

Signed-off-by: Greg Hackmann <ghackmann@google.com>
Signed-off-by: Jin Qian <jinqian@android.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c