This patch checks the function parameter 'bytes' before doing the
subtraction to prevent memory corruption.
Signed-off-by: Christian Gromm
Reported-by: Dan Carpenter
---
v2: change if condition to avoid difference of subtraction becomes negative.
drivers/staging/most/sound/sound.c | 2 ++
1 fi
This patch replaces the safe list iteration function with the
non-safe one, as no list element is being deleted.
Signed-off-by: Christian Gromm
Reported-by: Dan Carpenter
---
drivers/staging/most/sound/sound.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/stagi
This patch set fixes two problems found during code audit.
Christian Gromm (2):
staging: most: sound: add sanity check for function argument
staging: most: sound: use non-safe list iteration
drivers/staging/most/sound/sound.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
--
2
This patch zero checks the function parameter 'bytes' before doing the
subtraction to prevent memory corruption.
Signed-off-by: Christian Gromm
Reported-by: Dan Carpenter
---
drivers/staging/most/sound/sound.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/staging/most/sound/soun
On Tue, Feb 02, 2021 at 12:38:09PM +0100, Christian Gromm wrote:
> This patch zero checks the function parameter 'bytes' before doing the
> subtraction to prevent memory corruption.
>
> Signed-off-by: Christian Gromm
> Reported-by: Dan Carpenter
> ---
> drivers/staging/most/sound/sound.c | 2 ++
On Tue, Feb 02, 2021 at 11:31:17AM +0300, Dan Carpenter wrote:
> Apparently this was already merged? Never mind then. Once it's merged
> it can't be changed. No big stress...
Sorry, yes, already in my tree...
___
devel mailing list
de...@linuxdriverpr
Apparently this was already merged? Never mind then. Once it's merged
it can't be changed. No big stress...
regards,
dan carpenter
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-