Re: [PATCH] ACPI: bay: send envp with uevent - fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Len,

any news about applying this patch to acpi-test?

I got Kristen's Acked-by by private email.

Best regards,
Stephan

Stephan Berberig schrieb:
> Hi,
> attached a patch to fix the bay uevent so that udev doesn't get confused.
> 
> Kristen, could I get your Acked-by?
> 
> Best regards,
> Stephan
> 
> 
> ------------------------------------------------------------------------
> 
> There must not be a new-line character in the uevent. Otherwise, udev gets confused.
> Thanks to Kay Sievers for pointing it out.
> 
> Signed-off-by: Stephan Berberig <s.berberig@xxxxxxxx>
> CC: Kristen Carlson Accardi <kristen.c.accardi@xxxxxxxxx>
> 
> --- a/drivers/acpi/bay.c	2007-06-08 12:01:11.000000000 +0200
> +++ b/drivers/acpi/bay.c	2007-06-08 12:02:49.000000000 +0200
> @@ -337,7 +337,7 @@
>  	char *envp[] = { event_string, NULL };
>  
>  	bay_dprintk(handle, "Bay event");
> -	sprintf(event_string, "BAY_EVENT=%d\n", event);
> +	sprintf(event_string, "BAY_EVENT=%d", event);
>  	kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, envp);
>  }
>  

-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux