From: Jouni Malinen Date: Mon, 29 Aug 2005 00:53:32 +0000 (-0700) Subject: [PATCH] hostap: Fix null pointer dereference in prism2_pccard_card_present() X-Git-Tag: v2.6.14-rc1~1017^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbff868db3a4cc6a89d51da9a6d49b26c29d04fb;p=pandora-kernel.git [PATCH] hostap: Fix null pointer dereference in prism2_pccard_card_present() local->hw_priv was initialized only after the interrupt handler was registered. This could trigger a NULL pointer dereference in prism2_pccard_card_present() that assumed that local->hw_priv is always set (and it should have been). Fix this by setting local->hw_priv before registering the interrupt handler. Signed-off-by: Jouni Malinen Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed