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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070414180451.GA4525@linux-mips.org>
Date:	Sat, 14 Apr 2007 20:04:51 +0200
From:	Ralf Baechle <ralf@...ux-mips.org>
To:	"Robert P. J. Day" <rpjday@...dspring.com>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	dhowells@...hat.com, sfr@...b.auug.org.au
Subject: Re: {Spam?} [PATCH] Remove all traces of legacy power management.

On Sat, Apr 14, 2007 at 12:49:54PM -0400, Robert P. J. Day wrote:
> Date:	Sat, 14 Apr 2007 12:49:54 -0400 (EDT)
> From:	"Robert P. J. Day" <rpjday@...dspring.com>
> To:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
> cc:	dhowells@...hat.com, Ralf Baechle <ralf@...ux-mips.org>,
> 	sfr@...b.auug.org.au
> Subject: {Spam?} [PATCH] Remove all traces of legacy power management.
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> 
> Remove everything related to legacy power management.
> 
> Signed-off-by: Robert P. J. Day <rpjday@...dspring.com>

> diff --git a/arch/mips/au1000/common/power.c b/arch/mips/au1000/common/power.c
> index 3901e8e..f3685d6 100644
> --- a/arch/mips/au1000/common/power.c
> +++ b/arch/mips/au1000/common/power.c
> @@ -278,13 +278,11 @@ static int pm_do_sleep(ctl_table * ctl, int write, struct file *file,
>  		p = buf;
>  		sleep_ticks = simple_strtoul(p, &p, 0);
>  #endif
> -		retval = pm_send_all(PM_SUSPEND, (void *) 2);
> 
>  		if (retval)
>  			return retval;
> 
>  		au_sleep();
> -		retval = pm_send_all(PM_RESUME, (void *) 0);
>  	}
>  	return retval;
>  }
> @@ -297,12 +295,10 @@ static int pm_do_suspend(ctl_table * ctl, int write, struct file *file,
>  	if (!write) {
>  		*len = 0;
>  	} else {
> -		retval = pm_send_all(PM_SUSPEND, (void *) 2);
>  		if (retval)
>  			return retval;
>  		suspend_mode = 1;
> 
> -		retval = pm_send_all(PM_RESUME, (void *) 0);
>  	}
>  	return retval;
>  }

Both segments leave the variable retval as zero initialized and only used
for the return value ...  I'm not sure what these functions actually
should do - but after your patches they have essentially become glorified
nops.

  Ralf
-
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