Re: [PATCH net-next] sctp: handle errors when updating asoc

2017-06-20 Thread David Miller
From: Xin Long Date: Tue, 20 Jun 2017 16:05:11 +0800 > It's a bad thing not to handle errors when updating asoc. The memory > allocation failure in any of the functions called in sctp_assoc_update() > would cause sctp to work unexpectedly. > > This patch is to fix it by aborting the asoc and rep

Re: [PATCH net-next] sctp: handle errors when updating asoc

2017-06-20 Thread Marcelo Ricardo Leitner
On Tue, Jun 20, 2017 at 04:05:11PM +0800, Xin Long wrote: > It's a bad thing not to handle errors when updating asoc. The memory > allocation failure in any of the functions called in sctp_assoc_update() > would cause sctp to work unexpectedly. > > This patch is to fix it by aborting the asoc and

Re: [PATCH net-next] sctp: handle errors when updating asoc

2017-06-20 Thread Neil Horman
On Tue, Jun 20, 2017 at 04:05:11PM +0800, Xin Long wrote: > It's a bad thing not to handle errors when updating asoc. The memory > allocation failure in any of the functions called in sctp_assoc_update() > would cause sctp to work unexpectedly. > > This patch is to fix it by aborting the asoc and

[PATCH net-next] sctp: handle errors when updating asoc

2017-06-20 Thread Xin Long
It's a bad thing not to handle errors when updating asoc. The memory allocation failure in any of the functions called in sctp_assoc_update() would cause sctp to work unexpectedly. This patch is to fix it by aborting the asoc and reporting the error when any of these functions fails. Signed-off-b