| Submitter | Greg Kroah-Hartman |
|---|---|
| Date | 2009-08-13 19:50:08 |
| Message ID | <20090813195129.458122866@mini.kroah.org> |
| Download | mbox | patch |
| Permalink | /patch/41218/ |
| State | New |
| Headers | show |
Comments
Patch
--- a/net/wireless/scan.c +++ b/net/wireless/scan.c @@ -118,7 +118,7 @@ static int cmp_ies(u8 num, u8 *ies1, siz if (!ie1 && !ie2) return 0; - if (!ie1) + if (!ie1 || !ie2) return -1; r = memcmp(ie1 + 2, ie2 + 2, min(ie1[1], ie2[1])); @@ -171,6 +171,8 @@ static bool is_mesh(struct cfg80211_bss ie = find_ie(WLAN_EID_MESH_CONFIG, a->information_elements, a->len_information_elements); + if (!ie) + return false; if (ie[1] != IEEE80211_MESH_CONFIG_LEN) return false;