diff mbox

set dock_station->flags to zero during dock_add

Message ID 20100201173518.GA28002@ldl.fc.hp.com (mailing list archive)
State Accepted
Headers show

Commit Message

Alexander Chiang Feb. 1, 2010, 5:35 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index bbc2c13..b2586f5 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -935,6 +935,7 @@  static int dock_add(acpi_handle handle)
 	struct platform_device *dd;
 
 	id = dock_station_count;
+	memset(&ds, 0, sizeof(ds));
 	dd = platform_device_register_data(NULL, "dock", id, &ds, sizeof(ds));
 	if (IS_ERR(dd))
 		return PTR_ERR(dd);