Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[muen/linux.git] / net / mac80211 / main.c
index 722f3d9fb41648174d3174abbcd4ddd4d18b1a3d..fb73451ed85ec65cd0b4b5cc3808d51d40a8dd39 100644 (file)
@@ -772,7 +772,7 @@ static int ieee80211_init_cipher_suites(struct ieee80211_local *local)
                if (have_mfp)
                        n_suites += 4;
 
-               suites = kmalloc(sizeof(u32) * n_suites, GFP_KERNEL);
+               suites = kmalloc_array(n_suites, sizeof(u32), GFP_KERNEL);
                if (!suites)
                        return -ENOMEM;