Re: 2.6.33 dies on modprobe

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: =?UTF-8?Q?Am=C3=A9rico_Wang?=
Date: Wednesday, March 3, 2010 - 2:18 am

On Wed, Mar 3, 2010 at 5:08 PM, Américo Wang <xiyou.wangcong@gmail.com> wrote:

Here we go:

--------------------->

It looks really odd that we do class_put() in non-failure path of
__class_register(). This seems wrong.

To fix this, just remove class_get() in __class_register(), we don't need
to call class_get() to get ref of cls->p->class_subsys, because
kset_register() has already done this for us.

Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.33 dies on modprobe, =?UTF-8?Q?Am=C3=A9ri ..., (Sun Feb 28, 9:22 pm)
Re: 2.6.33 dies on modprobe, M G Berberich, (Mon Mar 1, 2:07 am)
Re: 2.6.33 dies on modprobe, Andrew Morton, (Tue Mar 2, 7:52 pm)
Re: 2.6.33 dies on modprobe, =?UTF-8?Q?Am=C3=A9ri ..., (Wed Mar 3, 1:58 am)
Re: 2.6.33 dies on modprobe, =?UTF-8?Q?Am=C3=A9ri ..., (Wed Mar 3, 2:08 am)
Re: 2.6.33 dies on modprobe, =?UTF-8?Q?Am=C3=A9ri ..., (Wed Mar 3, 2:18 am)
Re: 2.6.33 dies on modprobe, M G Berberich, (Wed Mar 3, 3:16 pm)
Re: 2.6.33 dies on modprobe, Andrew Morton, (Wed Mar 3, 3:24 pm)
Re: 2.6.33 dies on modprobe, Andrew Morton, (Wed Mar 3, 5:05 pm)
Re: 2.6.33 dies on modprobe, Randy Dunlap, (Wed Mar 3, 5:10 pm)