]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf82fb3c4ecb735f7f47e676a4c025519ed488624
tree3dada68e8d61f5d470ca37fd695ba6434041b5a8
parent480cac0da56d01195682b633c6be4ad2adccf5dc
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