af_iucv: fix AF_IUCV sendmsg() errno
authorEugene Crosser <Eugene.Crosser@ru.ibm.com>
Mon, 30 Mar 2015 13:40:42 +0000 (15:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 20:06:50 +0000 (16:06 -0400)
commited4ac4221776a5103faf71a4032ca00178d6e66b
tree3dada68e8d61f5d470ca37fd695ba6434041b5a8
parentfa2d8ff4e3522b4e05f590575d3eb8087f3a8cdc
af_iucv: fix AF_IUCV sendmsg() errno

When sending over AF_IUCV socket, errno was incorrectly set to
ENOMEM even when other values where appropriate, notably EAGAIN.
With this patch, error indicator returned by sock_alloc_send_skb()
is passed to the caller, rather than being overwritten with ENOMEM.

Signed-off-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c