]> git.baikalelectronics.ru Git - kernel.git/commit
9p: saving negative to unsigned char
authorDan Carpenter <error27@gmail.com>
Mon, 5 Apr 2010 19:37:28 +0000 (14:37 -0500)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 5 Apr 2010 19:37:28 +0000 (14:37 -0500)
commit51f62a0f6511cc28d705d643f4c7d9d59573f0d3
tree643e6ecbcf8ffe58bdbd19ce2acde43643eeaf2b
parent596c7ef6051d7093aa261bd4031d70d31bd41a4d
9p: saving negative to unsigned char

Saving -EINVAL as unsigned char truncates the high bits and changes it
into 234 instead of -22.  This breaks the test for "if (ret == -EINVAL)"
in parse_opts().

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