Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5461282ybe; Tue, 10 Sep 2019 04:10:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwICqC1pOVlluy+IEZxtNns5C1Q4+awlaohmysbc/00ozAi3yIqVpzWwh8GqufTwr/+JHi7 X-Received: by 2002:a17:906:d922:: with SMTP id rn2mr23798697ejb.169.1568113838206; Tue, 10 Sep 2019 04:10:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568113838; cv=none; d=google.com; s=arc-20160816; b=1DZ9GlJ+1nj9bfrpg/wOsf2T4a6PeyLgQdcYmtXkoKF36T+WPnPHAl+HBbawquLCuf +aNPUarhZPI/9xYjykdZR5UqrHSUydtvVp7FkLOp2934cfbLaPLJkzKC/tt7NbHuvEHK QpMc/NYMoIlVmHqJNnPnY7K3PhJuWvmc7mO9xyOi3j8pbT21PWOAhgX97w3ca2EdxIbU 0LBRIQKDR5zGRx0GAPn+VjRfDR+tOqmTKa5sU37wthIQI6LSX1+T8XQUztnVmapqwNw8 DXagH2zakSD3xodUrFPZKEUQzXtyz1gamhQJb4hQ3UmTX3g7b4/VdtdLG5sM96AigMTz OErg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=KNE9o6t8cBFkPrcPgyQT/8j4K9H4K4rObfBA9+tM+ck=; b=f+/tsvmUlzfHPRxIJP9qWKZrswFNY21MSqc98jX8UKR717tx9XnDfzzDQFDrkQ1AEH +9nevYUm62H1do5mhv+Sc3EWzMKNlvf8+8ykbCKzQQiFodnlxmwtWEybV6/h+eMTo19A +nBOEfVn68s/X2dOn8tVEnQ63atl5nD3cmP9ZrWwzv973HlEWniHrhTz2BxKj8zuWd7h TfVwgGrR7JiVtNbwZ7d63qorKHW+phFwQNgqA7KuCDGSRiTpRMn0293n2/I4u9MSBPp5 Ll+q6KSxWH/geBFGfMqONv2PVLDj8N2aetvXVfS+a68Nak015Y+EDzm3Zz4PO4pM0Ddr JHtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gv10si8996405ejb.398.2019.09.10.04.10.13; Tue, 10 Sep 2019 04:10:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406501AbfIJG40 (ORCPT + 99 others); Tue, 10 Sep 2019 02:56:26 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2200 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731204AbfIJG4X (ORCPT ); Tue, 10 Sep 2019 02:56:23 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D8911453BED5E90F01BD; Tue, 10 Sep 2019 14:56:18 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Tue, 10 Sep 2019 14:56:08 +0800 From: Mao Wenan To: , , , CC: , , , , Mao Wenan Subject: [PATCH net 0/2] fix memory leak for sctp_do_bind Date: Tue, 10 Sep 2019 15:13:41 +0800 Message-ID: <20190910071343.18808-1-maowenan@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org First patch is to do cleanup, remove redundant assignment, second patch is to fix memory leak for sctp_do_bind if failed to bind address. Mao Wenan (2): sctp: remove redundant assignment when call sctp_get_port_local sctp: destroy bucket if failed to bind addr net/sctp/socket.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.20.1