ACPI: dock: fix opps after dock driver fails to initialize
authorChuck Ebbert <cebbert@redhat.com>
Wed, 9 May 2007 22:05:48 +0000 (15:05 -0700)
committerLen Brown <len.brown@intel.com>
Thu, 10 May 2007 07:30:41 +0000 (03:30 -0400)
commit22fe4c2114e29477ca6738729c074ee8f60d3b73
treeaf07c5267dd3d66b75bc4d3083eb2e946393f09f
parent38ff4ffc039ba5a5878f2dcbb03d87c3a1f02f1b
ACPI: dock: fix opps after dock driver fails to initialize

The driver tests the dock_station pointer for nonnull
to check whether it has initialized properly. But in
some cases dock_station will be non-null after being
freed when driver init fails. Fix by zeroing the
pointer after freeing.

Signed-off-by: Chuck Ebbert <cebbert@redhat.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/dock.c