[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110404171616.GB4830@local>
Date: Mon, 4 Apr 2011 19:16:17 +0200
From: "Hans J. Koch" <hjk@...sjkoch.de>
To: Aisheng Dong <b29396@...escale.com>
Cc: hjk@...sjkoch.de, greg@...ah.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] uio: clean uioinfo when uninstall uio driver
On Sat, Apr 02, 2011 at 04:55:23PM +0800, Aisheng Dong wrote:
> From: Jie Zhou <b30303@...escale.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@...escale.com>
> Signed-off-by: Aisheng Dong <b29396@...escale.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists