Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751770Ab2KTE4Q (ORCPT ); Mon, 19 Nov 2012 23:56:16 -0500 Received: from us-mx3.synaptics.com ([12.239.217.85]:62364 "EHLO us-mx3.synaptics.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750770Ab2KTE4O (ORCPT ); Mon, 19 Nov 2012 23:56:14 -0500 Message-ID: <50AB0D6C.9040003@synaptics.com> Date: Mon, 19 Nov 2012 20:56:12 -0800 From: Christopher Heiny Organization: Synaptics, Inc User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: Greg Kroah-Hartman CC: Dmitry Torokhov , Jean Delvare , Linux Kernel , Linux Input , Allie Xiong , Vivian Ly , Daniel Rosenberg , Alexandra Chin , Joerie de Gram , Wolfram Sang , Mathieu Poirier , Linus Walleij , Naveen Kumar Gaddipati Subject: Re: [RFC PATCH 02/06] input/rmi4: Core files References: <1353124734-16803-1-git-send-email-cheiny@synaptics.com> <1353124734-16803-3-git-send-email-cheiny@synaptics.com> <20121117215415.GA5624@kroah.com> In-Reply-To: <20121117215415.GA5624@kroah.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1084 Lines: 36 On 11/17/2012 01:54 PM, Greg Kroah-Hartman wrote: > On Fri, Nov 16, 2012 at 07:58:50PM -0800, Christopher Heiny wrote: >> +static void release_rmidev_device(struct device *dev) >> +{ >> + device_unregister(dev); >> +} > > You just leaked memory here, right? > > Also, you already unregistered the device, otherwise this function would > have never been called, so you just ended up in a loop? Roger. We'll fix that. > Have you ever tried removing a device? Are you sure it's working > properly? Hmmmm. If it leads to the loop you mention above, then the test I'm using must not be doing what I thought it was. I'll fix that, too. >> +EXPORT_SYMBOL(rmi_register_phys_device); > > Just curious, but why not EXPORT_SYMBOL_GPL() on all of these new > symbols you are creating? We'll change that. Thanks very much! Chris -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/