diff options
-rw-r--r-- | drivers/acpi/pci_link.c | 1 | ||||
-rw-r--r-- | drivers/platform/x86/sony-laptop.c | 3 | ||||
-rw-r--r-- | drivers/pnp/pnpacpi/rsparser.c | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/drivers/acpi/pci_link.c b/drivers/acpi/pci_link.c index ab764ed34a50..2652a614deeb 100644 --- a/drivers/acpi/pci_link.c +++ b/drivers/acpi/pci_link.c | |||
@@ -354,6 +354,7 @@ static int acpi_pci_link_set(struct acpi_pci_link *link, int irq) | |||
354 | 354 | ||
355 | } | 355 | } |
356 | resource->end.type = ACPI_RESOURCE_TYPE_END_TAG; | 356 | resource->end.type = ACPI_RESOURCE_TYPE_END_TAG; |
357 | resource->end.length = sizeof(struct acpi_resource); | ||
357 | 358 | ||
358 | /* Attempt to set the resource */ | 359 | /* Attempt to set the resource */ |
359 | status = acpi_set_current_resources(link->device->handle, &buffer); | 360 | status = acpi_set_current_resources(link->device->handle, &buffer); |
diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 14d4dced1def..d544e3aaf761 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c | |||
@@ -4121,7 +4121,7 @@ static int sony_pic_enable(struct acpi_device *device, | |||
4121 | resource->res3.data.irq.sharable = ACPI_SHARED; | 4121 | resource->res3.data.irq.sharable = ACPI_SHARED; |
4122 | 4122 | ||
4123 | resource->res4.type = ACPI_RESOURCE_TYPE_END_TAG; | 4123 | resource->res4.type = ACPI_RESOURCE_TYPE_END_TAG; |
4124 | 4124 | resource->res4.length = sizeof(struct acpi_resource); | |
4125 | } | 4125 | } |
4126 | /* setup Type 2/3 resources */ | 4126 | /* setup Type 2/3 resources */ |
4127 | else { | 4127 | else { |
@@ -4140,6 +4140,7 @@ static int sony_pic_enable(struct acpi_device *device, | |||
4140 | resource->res2.data.irq.sharable = ACPI_SHARED; | 4140 | resource->res2.data.irq.sharable = ACPI_SHARED; |
4141 | 4141 | ||
4142 | resource->res3.type = ACPI_RESOURCE_TYPE_END_TAG; | 4142 | resource->res3.type = ACPI_RESOURCE_TYPE_END_TAG; |
4143 | resource->res3.length = sizeof(struct acpi_resource); | ||
4143 | } | 4144 | } |
4144 | 4145 | ||
4145 | /* Attempt to set the resource */ | 4146 | /* Attempt to set the resource */ |
diff --git a/drivers/pnp/pnpacpi/rsparser.c b/drivers/pnp/pnpacpi/rsparser.c index b8f4ea7b27fc..9847ab163829 100644 --- a/drivers/pnp/pnpacpi/rsparser.c +++ b/drivers/pnp/pnpacpi/rsparser.c | |||
@@ -634,6 +634,7 @@ int pnpacpi_build_resource_template(struct pnp_dev *dev, | |||
634 | } | 634 | } |
635 | /* resource will pointer the end resource now */ | 635 | /* resource will pointer the end resource now */ |
636 | resource->type = ACPI_RESOURCE_TYPE_END_TAG; | 636 | resource->type = ACPI_RESOURCE_TYPE_END_TAG; |
637 | resource->length = sizeof(struct acpi_resource); | ||
637 | 638 | ||
638 | return 0; | 639 | return 0; |
639 | } | 640 | } |