Re: [PATCH] ACPI: add "Fujitsu laptop extras" module, take 3

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

 



> +static int __init fujitsu_init(void)
> +{
> +	int ret, result;
> +
> +	if (acpi_disabled)
> +		return -ENODEV;
> +
> +	fujitsu = kmalloc(sizeof(struct fujitsu_t), GFP_KERNEL);
> +	if (!fujitsu)
> +		return -ENOMEM;
> +	memset(fujitsu, 0, sizeof(struct fujitsu_t));
> +
> +	result = acpi_bus_register_driver(&acpi_fujitsu_driver);
> +	if (result < 0) {
> +		goto fail_acpi;
> +	}

if this goto is taken, then "ret" is used uninitialized below:

> +      fail_acpi:
> +
> +	kfree(fujitsu);
> +
> +	return ret;
> +}

-
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