Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753146AbdLEP1N (ORCPT ); Tue, 5 Dec 2017 10:27:13 -0500 Received: from xavier.telenet-ops.be ([195.130.132.52]:45274 "EHLO xavier.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752823AbdLEP1I (ORCPT ); Tue, 5 Dec 2017 10:27:08 -0500 From: Geert Uytterhoeven To: Pantelis Antoniou , Rob Herring , Frank Rowand Cc: Colin King , Dan Carpenter , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 0/2] of: overlay: Fix of_overlay_apply() error path Date: Tue, 5 Dec 2017 16:27:01 +0100 Message-Id: <1512487623-30450-1-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 951 Lines: 34 Hi Pantelis, Rob, Frank, Here's a replacement for commit bd80e2555c5c9d45 ("of: overlay: Fix cleanup order in of_overlay_apply()"), which was applied by Rob, and dropped later. The first patch fixes the memory leak reported by Colin. The second patch is a replacement for the bad dropped commit, and depends on the first patch for proper cleanup. All OF unittests pass. Thanks! Geert Uytterhoeven (2): of: overlay: Fix memory leak in of_overlay_apply() error path of: overlay: Fix (un)locking in of_overlay_apply() drivers/of/overlay.c | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) -- 2.7.4 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds