[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <27240C0AC20F114CBF8149A2696CBE4A01B8036B@SHSMSX101.ccr.corp.intel.com>
Date: Mon, 4 Nov 2013 01:06:01 +0000
From: "Liu, Chuansheng" <chuansheng.liu@...el.com>
To: "Wang, Xiaoming" <xiaoming.wang@...el.com>,
"myungjoo.ham@...sung.com" <myungjoo.ham@...sung.com>,
"cw00.choi@...sung.com" <cw00.choi@...sung.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC: "Zhang, Dongxing" <dongxing.zhang@...el.com>
Subject: RE: [PATCH] [extcon]:remove freed groups caused the panic or
warning in unregister flow
> -----Original Message-----
> From: Wang, Xiaoming
> Sent: Saturday, November 02, 2013 6:48 AM
> To: myungjoo.ham@...sung.com; cw00.choi@...sung.com;
> linux-kernel@...r.kernel.org
> Cc: Liu, Chuansheng; Zhang, Dongxing; Wang, Xiaoming
> Subject: [PATCH] [extcon]:remove freed groups caused the panic or warning in
> unregister flow
>
> (edev->extcon_dev_type.groups) has been freed before device_unregister.
> extcon_dev_unregister -> kfree(edev->extcon_dev_type.groups)
> then device_unregister -> device_del -> device_remove_attrs
> -> device_remove_groups(dev, type->groups);
> panic because type->groups has been freed.
>
This patch fix the panic that using the freed memory.
Tested-by: Liu, Chuansheng <chuansheng.liu@...el.com>
Reviewed-by: Liu, Chuansheng <chuansheng.liu@...el.com>
Powered by blists - more mailing lists