]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - net/mac80211/main.c
treewide: kmalloc() -> kmalloc_array()
[mirror_ubuntu-eoan-kernel.git] / net / mac80211 / main.c
index 4d2e797e3f168bdf784268b16de15799220e0146..fb1b1f9e7e5e03281fabe79175c62f3817354d0d 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;