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: <20110829190142.GA17354@ponder.secretlab.ca>
Date:	Mon, 29 Aug 2011 13:01:42 -0600
From:	Grant Likely <grant.likely@...retlab.ca>
To:	Uwe Kleine-König 
	<u.kleine-koenig@...gutronix.de>
Cc:	linux-kernel@...r.kernel.org, kernel@...gutronix.de
Subject: Re: [PATCH] gpiolib: add another might_sleep

On Thu, Feb 17, 2011 at 10:18:53PM +0100, Uwe Kleine-König wrote:
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...gutronix.de>

Applied, thanks.

g.

> ---
>  drivers/gpio/gpiolib.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
> index 5fc5e2d..2c9f814 100644
> --- a/drivers/gpio/gpiolib.c
> +++ b/drivers/gpio/gpiolib.c
> @@ -1207,6 +1207,7 @@ int gpio_request(unsigned gpio, const char *label)
>  	if (chip->request) {
>  		/* chip->request may sleep */
>  		spin_unlock_irqrestore(&gpio_lock, flags);
> +		might_sleep_if(chip->can_sleep);
>  		status = chip->request(chip, gpio - chip->base);
>  		spin_lock_irqsave(&gpio_lock, flags);
>  
> -- 
> 1.7.2.3
> 
--
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