[PATCH 1/2] staging: most: sound: add sanity check for function argument

2021-02-02 Thread Christian Gromm
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

Re: [PATCH 1/2] staging: most: sound: add sanity check for function argument

2021-02-02 Thread Dan Carpenter
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 ++