[systemd-devel] [ANNOUNCE] systemd 211

Lennart Poettering lennart at poettering.net
Wed Mar 12 15:38:18 PDT 2014


On Wed, 12.03.14 19:31, Tomasz Torcz (tomek at pipebreaker.pl) wrote:

>   Can you try with attached patch?

Patch looks right! Applied!

> 

> >From ea868942119b7afbfb709253ae6f02d18e67323d Mon Sep 17 00:00:00 2001
> From: Tomasz Torcz <tomek at pipebreaker.pl>
> Date: Wed, 12 Mar 2014 19:25:11 +0100
> Subject: [PATCH] gpt-auto-generator: don't return OOM on parentless devices
> 
> ---
>  src/gpt-auto-generator/gpt-auto-generator.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
> index e487f64..19c5eea 100644
> --- a/src/gpt-auto-generator/gpt-auto-generator.c
> +++ b/src/gpt-auto-generator/gpt-auto-generator.c
> @@ -395,7 +395,7 @@ static int enumerate_partitions(dev_t devnum) {
>  
>          parent = udev_device_get_parent(d);
>          if (!parent)
> -                return log_oom();
> +                return 0;
>  
>          /* Does it have a devtype? */
>          devtype = udev_device_get_devtype(parent);

> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list