]> git.baikalelectronics.ru Git - kernel.git/commit
net/9p: set error to EREMOTEIO if trans->write returns zero
authorLatchesar Ionkov <lucho@ionkov.net>
Wed, 11 Jul 2007 21:14:46 +0000 (15:14 -0600)
committerEric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com>
Sat, 14 Jul 2007 20:14:01 +0000 (15:14 -0500)
commit115b912a648af9e5fcceb0aea9e031eb0593758f
tree45c3ca8ad653dd2e55b88cd8d9d36502df604f4f
parent96d958370fba1a1ff215529e31788aee56e21b7a
net/9p: set error to EREMOTEIO if trans->write returns zero

If trans->write returns 0, p9_write_work goes through the error path, but
sets the error code to zero.

This patch sets the error code to EREMOTEIO if trans->write returns zero
value.

Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
net/9p/mux.c