[Meego-kernel] [PATCH] ar6003 : fix null point when connect to ap by CFG80211

Chang, Samuel samuelc at qca.qualcomm.com
Fri Jul 8 09:01:52 PDT 2011


For now, no.

The patch Nick sent is same as I mentioned for iw.

QCA, Samuel


"Xu, Martin" <martin.xu at intel.com>提到:


Hi Samuel at intel:
We have verified this patch together with your wpa_s patch. WEP works. Please review it.

Samuel at QCA:
If you have other solution or comments, please also let us know. Thanks!

From: meego-kernel-bounces at lists.meego.com [mailto:meego-kernel-bounces at lists.meego.com] On Behalf Of Nick_Shih at wistron.com
Sent: Thursday, July 07, 2011 5:58 PM
To: meego-kernel at lists.meego.com
Subject: [Meego-kernel] [PATCH] ar6003 : fix null point when connect to ap by CFG80211


Subject: fix null point in ar6k_cfg80211_connect

driver crash when use iw to connect by null pointer,
the root cause is sme->ie is NULL
add check for ie to make sure valid to use pointer.

Signed-off-by: Nick Shih <Nick_Shih at wistron.com>

diff -ruNa a/drivers/staging/ar6003/os/linux/cfg80211.c b/drivers/staging/ar6003/os/linux/cfg80211.c
--- a/drivers/staging/ar6003/os/linux/cfg80211.c        2011-07-07 14:53:42.300163064 -0700
+++ b/drivers/staging/ar6003/os/linux/cfg80211.c        2011-07-07 14:57:15.316163163 -0700
@@ -394,7 +394,7 @@

     arPriv->arNetworkType = arPriv->arNextMode;

-    if (ie[0] == WLAN_EID_VENDOR_SPECIFIC &&
+    if ( ie && ie[0] == WLAN_EID_VENDOR_SPECIFIC &&
         memcmp(ie + 2, wps_oui, sizeof(wps_oui)) == 0) {
        /* WPS IE detected, notify target */
        A_PRINTF("WPS IE detected -- setting WPS flag\n");

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.meego.com/pipermail/meego-kernel/attachments/20110708/2519703a/attachment.html>


More information about the MeeGo-kernel mailing list