From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johan Hovold Subject: [PATCH 0/2] gpio: sysfs: backports of memleak fixes to 3.12 Date: Mon, 26 Jan 2015 19:04:54 +0100 Message-ID: <1422295496-6194-1-git-send-email-johan@kernel.org> Return-path: Received: from mail-lb0-f172.google.com ([209.85.217.172]:48307 "EHLO mail-lb0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755586AbbAZSF0 (ORCPT ); Mon, 26 Jan 2015 13:05:26 -0500 Sender: linux-gpio-owner@vger.kernel.org List-Id: linux-gpio@vger.kernel.org To: Greg Kroah-Hartman Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Hi Greg, Here are backports of two fixes for memory leaks in the gpio sysfs interface that are needed in the stable trees. Tested on 3.12, but will not compile on 3.10 or earlier which lacks device_create_with_groups. I'll send a second version for these kernels. Johan Johan Hovold (2): gpio: sysfs: fix gpio-chip device-attribute leak gpio: sysfs: fix gpio device-attribute leak drivers/gpio/gpiolib.c | 46 +++++++++++++++++++++------------------------- 1 file changed, 21 insertions(+), 25 deletions(-) -- 2.0.5