diff options
author | Levi Yun <ppbuk5246@gmail.com> | 2024-05-06 07:10:59 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-05-08 12:19:43 +0300 |
commit | d7ad05c86e2191bd66e5b62fca8da53c4a53484f (patch) | |
tree | 059c0c94610cd072eaf552d1b3f845f8e4238abe /drivers/iommu | |
parent | dd5a440a31fae6e459c0d6271dddd62825505361 (diff) | |
download | linux-d7ad05c86e2191bd66e5b62fca8da53c4a53484f.tar.xz |
timers/migration: Prevent out of bounds access on failure
When tmigr_setup_groups() fails the level 0 group allocation, then the
cleanup derefences index -1 of the local stack array.
Prevent this by checking the loop condition first.
Fixes: 7ee988770326 ("timers: Implement the hierarchical pull model")
Signed-off-by: Levi Yun <ppbuk5246@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Anna-Maria Behnsen <anna-maria@linutronix.de>
Link: https://lore.kernel.org/r/20240506041059.86877-1-ppbuk5246@gmail.com
Diffstat (limited to 'drivers/iommu')
0 files changed, 0 insertions, 0 deletions