diff options
| author | Dan Carpenter <[email protected]> | 2022-09-15 11:30:58 +0000 |
|---|---|---|
| committer | Wolfram Sang <[email protected]> | 2022-09-21 20:12:06 +0000 |
| commit | b7af938f4379a884f15713319648a7653497a907 (patch) | |
| tree | 42a102bcb5b1d9b90524ec5006a28e6148b015d7 /net/unix/sysctl_net_unix.c | |
| parent | i2c: mlxbf: Fix frequency calculation (diff) | |
| download | kernel-b7af938f4379a884f15713319648a7653497a907.tar.gz kernel-b7af938f4379a884f15713319648a7653497a907.zip | |
i2c: mux: harden i2c_mux_alloc() against integer overflows
A couple years back we went through the kernel an automatically
converted size calculations to use struct_size() instead. The
struct_size() calculation is protected against integer overflows.
However it does not make sense to use the result from struct_size()
for additional math operations as that would negate any safeness.
Fixes: 1f3b69b6b939 ("i2c: mux: Use struct_size() in devm_kzalloc()")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Peter Rosin <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
