lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <200805072056.44222.rjw@sisk.pl>
Date:	Wed, 7 May 2008 20:56:43 +0200
From:	"Rafael J. Wysocki" <rjw@...k.pl>
To:	Mike Galbraith <efault@....de>
Cc:	Ingo Molnar <mingo@...e.hu>, Len Brown <lenb@...nel.org>,
	linux-kernel@...r.kernel.org
Subject: Re: WARNING: at drivers/base/sys.c:183 sysdev_driver_register+0x7a

On Wednesday, 7 of May 2008, Mike Galbraith wrote:
> 
> On Wed, 2008-05-07 at 00:39 +0200, Rafael J. Wysocki wrote:
> > On Tuesday, 22 of April 2008, Mike Galbraith wrote:
> > > 
> > > On Tue, 2008-04-22 at 09:53 +0200, Ingo Molnar wrote:
> > > > hi Len,
> > > > 
> > > > randconfig boot testing found this new debug warning message in the 
> > > > syslog:
> > > 
> > > Ditto with Q6600 and v2.6.25-3410-g8075014.
> > 
> > Does it still happen with the current -git?
> 
> No, it was fixed by:

OK, thanks.

> commit db176c6ed8974fae94328ad5ac9e70b094ff22fd
> Author: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
> Date:   Wed May 7 04:02:53 2008 +0900
> 
>     Fix bogus warning in sysdev_driver_register()
>     
>             if ((drv->entry.next != drv->entry.prev) ||
>                 (drv->entry.next != NULL)) {
>     
>     warns list_empty(&drv->entry).
>     
>     Signed-off-by: OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
>     Cc: Greg KH <gregkh@...e.de>
>     Cc: Len Brown <lenb@...nel.org>
>     [ Version 2 totally redone based on suggestions from Linus & Greg ]
>     Signed-off-by: Linus Torvalds <torvalds@...ux-foundation.org>
> 
> diff --git a/drivers/base/sys.c b/drivers/base/sys.c
> index 4fbb56b..358bb0b 100644
> --- a/drivers/base/sys.c
> +++ b/drivers/base/sys.c
> @@ -175,8 +175,7 @@ int sysdev_driver_register(struct sysdev_class *cls, struct sysdev_driver *drv)
>  	}
>  
>  	/* Check whether this driver has already been added to a class. */
> -	if ((drv->entry.next != drv->entry.prev) ||
> -	    (drv->entry.next != NULL)) {
> +	if (drv->entry.next && !list_empty(&drv->entry)) {
>  		printk(KERN_WARNING "sysdev: class %s: driver (%p) has already"
>  			" been registered to a class, something is wrong, but "
>  			"will forge on!\n", cls->name, drv);
> 
> 
> 
> 
> 
> 



-- 
"Premature optimization is the root of all evil." - Donald Knuth
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ