mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
Staging: most: avoid possible integer overflow
This patch prevents a potential integer overlow. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
948fa942dc
commit
2ae0751007
@@ -1260,7 +1260,7 @@ int arm_mbo_chain(struct most_c_obj *c, int dir, void (*compl)(struct mbo *))
|
||||
unsigned int i;
|
||||
int retval;
|
||||
struct mbo *mbo;
|
||||
u16 coherent_buf_size = c->cfg.buffer_size + c->cfg.extra_len;
|
||||
u32 coherent_buf_size = c->cfg.buffer_size + c->cfg.extra_len;
|
||||
|
||||
atomic_set(&c->mbo_nq_level, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user