2013-03-27 20:48:49

by Andrei Epure

[permalink] [raw]
Subject: [PATCH] video: mmp: removed reference preceded by free

Patch found with coccinelle.

Signed-off-by: Andrei Epure <[email protected]>
---
drivers/video/mmp/core.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c
index 9ed8341..84de263 100644
--- a/drivers/video/mmp/core.c
+++ b/drivers/video/mmp/core.c
@@ -252,7 +252,5 @@ void mmp_unregister_path(struct mmp_path *path)

kfree(path);
mutex_unlock(&disp_lock);
-
- dev_info(path->dev, "de-register %s\n", path->name);
}
EXPORT_SYMBOL_GPL(mmp_unregister_path);
--
1.7.9.5


2013-03-28 01:40:04

by Zhou Zhu

[permalink] [raw]
Subject: Re: [PATCH] video: mmp: removed reference preceded by free

On 03/28/2013 04:48 AM, Andrei Epure wrote:
> Patch found with coccinelle.
>
> Signed-off-by: Andrei Epure <[email protected]>
> ---
> drivers/video/mmp/core.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c
> index 9ed8341..84de263 100644
> --- a/drivers/video/mmp/core.c
> +++ b/drivers/video/mmp/core.c
> @@ -252,7 +252,5 @@ void mmp_unregister_path(struct mmp_path *path)
>
> kfree(path);
> mutex_unlock(&disp_lock);
> -
> - dev_info(path->dev, "de-register %s\n", path->name);
> }
> EXPORT_SYMBOL_GPL(mmp_unregister_path);
>
Acked-by: Zhou Zhu <[email protected]>