]> asedeno.scripts.mit.edu Git - linux.git/commit
SoC: mxs-saif: check validity of ids in mxs_saif_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 14 Oct 2016 21:53:36 +0000 (00:53 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2016 10:14:32 +0000 (11:14 +0100)
commite1b790a8720192e1cfdd46a9b20d0f56de99c73d
tree0ae7b59665a7f6ac76ec2e5d5619839fccff6782
parent1001354ca34179f3db924eb66672442a173147dc
SoC: mxs-saif: check validity of ids in mxs_saif_probe()

There is a check for validity of one of ids in mxs_saif_probe(),
while array dereferece is made by the other id.

The patch adds the check for the second saif id.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mxs/mxs-saif.c