aboutsummaryrefslogtreecommitdiff
path: root/drivers/pnp/pnpacpi/rsparser.c
diff options
context:
space:
mode:
authorLiu ShuoX <shuox.liu@intel.com>2013-07-16 16:23:44 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-18 01:38:59 +0200
commit3c0fc0710185e618a661528eed2183102e25c2f8 (patch)
treedbe6d7e2df3c9986d6175771d0520d6aacaecd8c /drivers/pnp/pnpacpi/rsparser.c
parentd19f503e22316a84c39bc19445e0e4fdd49b3532 (diff)
PNP / ACPI: avoid garbage in resource name
Set temporary variable as 0 to avoid garbage string output from /proc/iomem after register resources and reset to PNP dev name later. Signed-off-by: Liu ShuoX <shuox.liu@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/pnp/pnpacpi/rsparser.c')
-rw-r--r--drivers/pnp/pnpacpi/rsparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pnp/pnpacpi/rsparser.c b/drivers/pnp/pnpacpi/rsparser.c
index 9847ab16382..167f3d00c91 100644
--- a/drivers/pnp/pnpacpi/rsparser.c
+++ b/drivers/pnp/pnpacpi/rsparser.c
@@ -180,7 +180,7 @@ static acpi_status pnpacpi_allocated_resource(struct acpi_resource *res,
struct pnp_dev *dev = data;
struct acpi_resource_dma *dma;
struct acpi_resource_vendor_typed *vendor_typed;
- struct resource r;
+ struct resource r = {0};
int i, flags;
if (acpi_dev_resource_memory(res, &r)