Re: [PATCH] net/atm: sk_err_soft must be positive

2016-05-23 Thread David Miller
From: Stefan Hajnoczi Date: Wed, 18 May 2016 17:42:13 -0700 > The sk_err and sk_err_soft fields are positive errno values and > userspace applications rely on this when using getsockopt(SO_ERROR). > > ATM code places an -errno into sk_err_soft in sigd_send() and returns it

[PATCH] net/atm: sk_err_soft must be positive

2016-05-18 Thread Stefan Hajnoczi
The sk_err and sk_err_soft fields are positive errno values and userspace applications rely on this when using getsockopt(SO_ERROR). ATM code places an -errno into sk_err_soft in sigd_send() and returns it from svc_addparty()/svc_dropparty(). Although I am not familiar with ATM code I came to