diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2021-02-02 17:21:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-07 12:18:58 +0100 |
commit | 946a7377b27dfc60a16ee358e0af842704fbe826 (patch) | |
tree | d009e94b46eaf842cd544fb0c55a01be195565f8 /crypto | |
parent | 99c2c8b009c42cbffd2bc5291ea8e1f27c3a9559 (diff) | |
download | linux-stable-946a7377b27dfc60a16ee358e0af842704fbe826.tar.gz linux-stable-946a7377b27dfc60a16ee358e0af842704fbe826.tar.bz2 linux-stable-946a7377b27dfc60a16ee358e0af842704fbe826.zip |
staging: most: sound: add sanity check for function argument
[ Upstream commit 45b754ae5b82949dca2b6e74fa680313cefdc813 ]
This patch checks the function parameter 'bytes' before doing the
subtraction to prevent memory corruption.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1612282865-21846-1-git-send-email-christian.gromm@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions