]> git.baikalelectronics.ru Git - kernel.git/commit
9p: fix put_data error handling
authorEric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com>
Wed, 24 Sep 2008 21:22:22 +0000 (16:22 -0500)
committerEric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com>
Wed, 24 Sep 2008 21:22:22 +0000 (16:22 -0500)
commit36aefc332e695f155b190276e0fdcfcb32cd9231
tree0b1264d7d8242997dece96868be033503e55be55
parent52ef13c9f97bde1625b3ae9a58d4d43ce4d647f6
9p: fix put_data error handling

Abhishek Kulkarni pointed out an inconsistency in the way
errors are returned from p9_put_data.  On deeper exploration it
seems the error handling for this path was completely wrong.
This patch adds checks for allocation problems and propagates
errors correctly.

Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/conv.c