mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
af_iucv: Reject incoming msgs if RECV_SHUTDOWN is set
Reject incoming iucv messages if the receive direction has been shut down. It avoids that the queue of outstanding messages increases and exceeds the message limit of the iucv communication path. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
60d3705fcb
commit
fe86e54ef9
1 changed files with 3 additions and 1 deletions
|
@ -1116,8 +1116,10 @@ static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg)
|
||||||
struct sock_msg_q *save_msg;
|
struct sock_msg_q *save_msg;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (sk->sk_shutdown & RCV_SHUTDOWN)
|
if (sk->sk_shutdown & RCV_SHUTDOWN) {
|
||||||
|
iucv_message_reject(path, msg);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!list_empty(&iucv->message_q.list) ||
|
if (!list_empty(&iucv->message_q.list) ||
|
||||||
!skb_queue_empty(&iucv->backlog_skb_q))
|
!skb_queue_empty(&iucv->backlog_skb_q))
|
||||||
|
|
Loading…
Reference in a new issue