diff options
author | Mark Brown <broonie@kernel.org> | 2018-09-10 20:55:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-10 20:55:12 +0300 |
commit | 54a3da1c105ca91c4d32f25c3d9c57a61e9a3467 (patch) | |
tree | 5be69ff9ccab03760f2ae17cbaecbfea0b016087 /sound/soc/sh/rcar/adg.c | |
parent | 1c8bc7b3de5e76cb89aacdc7be1475a028af505f (diff) | |
parent | 90a3b7f8aba3011badacd6d8121e03aa24ac79d1 (diff) | |
download | linux-54a3da1c105ca91c4d32f25c3d9c57a61e9a3467.tar.xz |
Merge branch 'asoc-4.19' into asoc-4.20 Cirrus conflict
Diffstat (limited to 'sound/soc/sh/rcar/adg.c')
-rw-r--r-- | sound/soc/sh/rcar/adg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sh/rcar/adg.c b/sound/soc/sh/rcar/adg.c index b100c44ec3a3..28327dd2c6cb 100644 --- a/sound/soc/sh/rcar/adg.c +++ b/sound/soc/sh/rcar/adg.c @@ -462,6 +462,11 @@ static void rsnd_adg_get_clkout(struct rsnd_priv *priv, goto rsnd_adg_get_clkout_end; req_size = prop->length / sizeof(u32); + if (req_size > REQ_SIZE) { + dev_err(dev, + "too many clock-frequency, use top %d\n", REQ_SIZE); + req_size = REQ_SIZE; + } of_property_read_u32_array(np, "clock-frequency", req_rate, req_size); req_48kHz_rate = 0; |