X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sound%2Fsoc%2Fcodecs%2Fwm8904.c;h=9037a35b931dbc7a6c07173439d456f81b3bba76;hb=6da2ec56059c3c7a7e5f729e6349e74ace1e5c57;hp=f13ef334c0d728dec446c24b7da63d0fa1d4fdc3;hpb=1c542f38ab8d30d9c852a16d49ac5a15267bbf1f;p=linux.git diff --git a/sound/soc/codecs/wm8904.c b/sound/soc/codecs/wm8904.c index f13ef334c0d7..9037a35b931d 100644 --- a/sound/soc/codecs/wm8904.c +++ b/sound/soc/codecs/wm8904.c @@ -2023,8 +2023,9 @@ static void wm8904_handle_pdata(struct snd_soc_component *component) wm8904_get_drc_enum, wm8904_put_drc_enum); /* We need an array of texts for the enum API */ - wm8904->drc_texts = kmalloc(sizeof(char *) - * pdata->num_drc_cfgs, GFP_KERNEL); + wm8904->drc_texts = kmalloc_array(pdata->num_drc_cfgs, + sizeof(char *), + GFP_KERNEL); if (!wm8904->drc_texts) return;