aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pnp/pnpacpi/rsparser.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pnp/pnpacpi/rsparser.c')
-rw-r--r--drivers/pnp/pnpacpi/rsparser.c1
1 files changed, 1 insertions, 0 deletions
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}