From: Johannes Berg Date: Wed, 6 Jun 2012 07:42:57 +0000 (+0200) Subject: iwlwifi: fix dynamic loading X-Git-Tag: v3.6-rc1~125^2~57^2~331 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff1ffb850b7ac6d0f1b085208a6630f7584e1015;p=pandora-kernel.git iwlwifi: fix dynamic loading Add locking to the dynamic loading code to prevent corrupting the list if multiple device ever init at the same time (which cannot happen for multiple PCI devices, but could happen when different busses init concurrently.) Also remove a device from the list when it stops so the list isn't left corrupted, including a fix from Don to not crash when it was never added. Reviewed-by: Donald H Fry Tested-by: Donald H Fry Reviewed-by: Emmanuel Grumbach Signed-off-by: Don Fry Signed-off-by: Johannes Berg --- Reading git-diff-tree failed