From patchwork Fri May 22 00:34:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Stotland, Inga" X-Patchwork-Id: 11564275 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E2014913 for ; Fri, 22 May 2020 00:35:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CAB99207D8 for ; Fri, 22 May 2020 00:35:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbgEVAfD (ORCPT ); Thu, 21 May 2020 20:35:03 -0400 Received: from mga14.intel.com ([192.55.52.115]:55682 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbgEVAfD (ORCPT ); Thu, 21 May 2020 20:35:03 -0400 IronPort-SDR: 31rZvSn1NDFM3cpN/W7ip/y4Ztf073B9ipE+fzsomk8CGJi7FsAlD4BIyczAgZL6cPOX0oN5fT YxCY/WVFqxzw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 May 2020 17:35:02 -0700 IronPort-SDR: VZ7SwImXXYFwK2FYGJM9ak5dDAjSbY+v73TOFz82ovK3clHsfMvoS2PPcEWZZPORzDlfPKaJS1 twNWTJJJsMiQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,419,1583222400"; d="scan'208";a="300961647" Received: from nsalivat-mobl.amr.corp.intel.com (HELO ingas-nuc1.sea.intel.com) ([10.254.98.52]) by orsmga008.jf.intel.com with ESMTP; 21 May 2020 17:35:02 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ 00/10] Mesh code clean up Date: Thu, 21 May 2020 17:34:51 -0700 Message-Id: <20200522003501.106165-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This patchset is contains a number of memory leak fixes and some stylistic changes that hopefully result in more compact and readable code. Inga Stotland (10): mesh: Remove unused structure member mesh: Free allocated agent in mesh_remove_agent() mesh: Remove agent when freeing node's dynamic resources mesh: Add finalization of a newly created node mesh: Remove unused function prototypes from node.h mesh: Create a queue of pending requests in mesh_init() mesh: Clean up Import() method call mesh: Clean up Attach() method call mesh: Fix memory leak in Create, Import & Attach methods mesh: Clean up Join() method mesh/agent.c | 10 ++-- mesh/mesh.c | 136 ++++++++++++++++++--------------------------------- mesh/node.c | 57 ++++++++++++--------- mesh/node.h | 7 ++- 4 files changed, 88 insertions(+), 122 deletions(-)