From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755131AbZINKv2 (ORCPT ); Mon, 14 Sep 2009 06:51:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752796AbZINKv0 (ORCPT ); Mon, 14 Sep 2009 06:51:26 -0400 Received: from iksaif.net ([88.191.73.63]:44081 "EHLO iksaif.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750902AbZINKvY (ORCPT ); Mon, 14 Sep 2009 06:51:24 -0400 From: Corentin Chary To: linux-acpi@vger.kernel.org Cc: linux-kernel , Julia Lawall , Alan Jenkins , Johannes Berg , Corentin Chary Subject: [PATCH 0/3] rfkill_unregister() should always be followed by rfkill_destroy() Date: Mon, 14 Sep 2009 12:43:50 +0200 Message-Id: <1252925033-29696-1-git-send-email-corentincj@iksaif.net> X-Mailer: git-send-email 1.6.4.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The semantic match that finds the first problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // @r@ expression E; position p; @@ rfkill_unregister(E);@p ... when != rfkill_destroy(E) @script:python@ p << r.p; @@ print "rfkill_unregister without rfkill_destroy found: %s %s " % (p[0].file, p[0].line) // Corentin Chary (3): hp-wmi: fix rfkill memory leak on unload thinkpad_acpi: fix rfkill memory leak on unload dell-laptop: fix rfkill memory leak on unload drivers/platform/x86/dell-laptop.c | 36 ++++++++++++++++++++++----------- drivers/platform/x86/hp-wmi.c | 2 +- drivers/platform/x86/thinkpad_acpi.c | 1 + 3 files changed, 26 insertions(+), 13 deletions(-)