From: "Hans J. Koch" <hjk@hansjkoch.de>
To: Aisheng Dong <b29396@freescale.com>
Cc: hjk@hansjkoch.de, greg@kroah.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] uio: clean uioinfo when uninstall uio driver
Date: Mon, 4 Apr 2011 19:16:17 +0200 [thread overview]
Message-ID: <20110404171616.GB4830@local> (raw)
In-Reply-To: <1301734523-27933-1-git-send-email-b29396@freescale.com>
On Sat, Apr 02, 2011 at 04:55:23PM +0800, Aisheng Dong wrote:
> From: Jie Zhou <b30303@freescale.com>
>
> The uioinfo should be cleaned up when uninstall, otherwise re-install
> failure of uio_pdrv_genirq.ko will happen.
>
> Signed-off-by: Jie Zhou <b30303@freescale.com>
> Signed-off-by: Aisheng Dong <b29396@freescale.com>
> ---
> drivers/uio/uio_pdrv_genirq.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c
> index 7174d51..e669a2c 100644
> --- a/drivers/uio/uio_pdrv_genirq.c
> +++ b/drivers/uio/uio_pdrv_genirq.c
> @@ -189,6 +189,12 @@ static int uio_pdrv_genirq_remove(struct platform_device *pdev)
>
> uio_unregister_device(priv->uioinfo);
> pm_runtime_disable(&pdev->dev);
> +
> + priv->uioinfo->irq_flags = 0;
Why this one?
> + priv->uioinfo->handler = NULL;
> + priv->uioinfo->irqcontrol = NULL;
Both OK, good catch!
> + priv->uioinfo->priv = NULL;
Why this one?
> +
> kfree(priv);
> return 0;
> }
Thanks,
Hans
next prev parent reply other threads:[~2011-04-04 17:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-02 8:55 [PATCH 1/1] uio: clean uioinfo when uninstall uio driver Aisheng Dong
2011-04-04 17:16 ` Hans J. Koch [this message]
2011-04-06 6:11 ` Dong Aisheng-B29396
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110404171616.GB4830@local \
--to=hjk@hansjkoch.de \
--cc=b29396@freescale.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.