greybus: fix some error codes
authorAlex Elder <elder@linaro.org>
Tue, 25 Nov 2014 19:06:44 +0000 (13:06 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 25 Nov 2014 21:21:14 +0000 (13:21 -0800)
commit1a365154c24a3fd48b96ad25cb67a483124d56ad
treed0708a164dc074971d63b6edf5bd7aa5f00de19a
parent3deb37d4ad04c6cb18564f5af2c88c10fa6bfc76
greybus: fix some error codes

Change the message result values used in two cases.

First, use -EMSGSIZE rather than -E2BIG to represent a message
that is larger than the buffer intended to hold it.  That is
the proper code for this situation.

Second, use -ECANCELED rather than -EINTR for an operation that
has been canceled.  The definition of that error is literally
"Operation Canceled" so it seems like the right thing to do.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c