staging: wilc1000: Use kmalloc_array instead of kmalloc
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Tue, 16 Feb 2016 22:24:52 +0000 (17:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 01:00:07 +0000 (17:00 -0800)
commit3e758b278896272bb641cd9e76e8416e2ba9586e
tree66e36cf4a86211c49e2cce96fa10164cfbfa30e7
parentaae96201517678c241ea94da42a6756f80215362
staging: wilc1000: Use kmalloc_array instead of kmalloc

Use kmalloc_array instead of kmalloc for arrays to prevent integer
overflows.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c