diff options
author | Takashi Iwai <tiwai@suse.de> | 2021-01-07 18:52:46 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-01-07 18:52:58 +0100 |
commit | 6dcb8bf9a1d7f6d137a17b76177cd67e9b8e023d (patch) | |
tree | f73ca2bee2f77eb965f049d10e10636a0ff718a0 /sound/core | |
parent | 64062869f0d63d118560c15f671376b43f71b102 (diff) | |
parent | 7b62275507232f01f66d3e7d05c77bbd9009b726 (diff) | |
download | linux-6dcb8bf9a1d7f6d137a17b76177cd67e9b8e023d.tar.gz |
Merge branch 'for-linus' into for-next
Back-merge of 5.11-devel branch for syncing the result changes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r-- | sound/core/pcm_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c index bda3514c7b2d..b7e3d8f44511 100644 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c @@ -1129,8 +1129,8 @@ int snd_pcm_hw_rule_add(struct snd_pcm_runtime *runtime, unsigned int cond, if (constrs->rules_num >= constrs->rules_all) { struct snd_pcm_hw_rule *new; unsigned int new_rules = constrs->rules_all + 16; - new = krealloc(constrs->rules, new_rules * sizeof(*c), - GFP_KERNEL); + new = krealloc_array(constrs->rules, new_rules, + sizeof(*c), GFP_KERNEL); if (!new) { va_end(args); return -ENOMEM; |