linux-brain/drivers/staging/most
Christian Gromm e3ec4af506 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>
2021-03-07 12:20:45 +01:00
..
Documentation staging: most: trivial: fix a couple of typos 2019-06-06 15:03:34 +02:00
cdev staging: most: Delete an error message for a failed memory allocation 2019-07-22 07:34:09 +02:00
dim2 staging: Remove dev_err() usage after platform_get_irq() 2019-07-30 20:50:04 +02:00
i2c staging: add missing SPDX lines to Makefile files 2019-04-03 11:10:15 +02:00
net staging: most: net: fix buffer overflow 2020-02-01 09:34:33 +00:00
sound staging: most: sound: add sanity check for function argument 2021-03-07 12:20:45 +01:00
usb staging: most: usb: remove prefix from description tag 2019-04-16 13:25:17 +02:00
video staging: most: Use DEFINE_SPINLOCK() instead of struct spinlock 2019-07-30 09:52:04 +02:00
Kconfig staging: most: use help instead of ---help--- in Kconfig 2019-05-20 10:49:07 +02:00
Makefile staging: most: enable configfs support 2019-04-16 13:25:17 +02:00
TODO
configfs.c staging: most: remove data sanity check 2019-07-03 18:28:28 +02:00
core.c staging: most-core: Fix checkpatch warnings 2019-08-27 19:01:26 +02:00
core.h staging: most: allow speculative configuration 2019-04-16 13:25:18 +02:00