diff options
| author | Dan Carpenter <[email protected]> | 2024-11-30 10:07:56 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2024-12-23 10:57:23 +0000 |
| commit | 402074f0105e93154409e4a86c02d09e5199d9a5 (patch) | |
| tree | 72bdbd25fbb23f96f2e5dbd58bf191ef18aa8e04 /net/unix/sysctl_net_unix.c | |
| parent | opp: core: implement dev_pm_opp_get_bw (diff) | |
| download | kernel-402074f0105e93154409e4a86c02d09e5199d9a5.tar.gz kernel-402074f0105e93154409e4a86c02d09e5199d9a5.zip | |
opp: core: Fix off by one in dev_pm_opp_get_bw()
The "opp->bandwidth" array has "opp->opp_table->path_count" number of
elements. It's allocated in _opp_allocate(). So this > needs to be >=
to prevent an out of bounds access.
Fixes: d78653dcd8bf ("opp: core: implement dev_pm_opp_get_bw")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
