diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-04-14 18:42:31 -0500 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2025-04-20 06:55:51 -0400 |
commit | 4bcc063939a560f05b05b34be68d20045a646e6e (patch) | |
tree | 532a8318d3037337c546a0fb65824299891c0855 /lib/mpi/mpi-gcd.c | |
parent | 80f2ab46c2ee16f046b55306dc4db4be53125016 (diff) |
ice, irdma: fix an off by one in error handling code
If we don't allocate the MIN number of IRQs then we need to free what
we have and return -ENOMEM. The problem is this loop is off by one
so it frees an entry that wasn't allocated and it doesn't free the
first entry where i == 0.
Fixes: 3e0d3cb3fbe0 ("ice, irdma: move interrupts code to irdma")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Link: https://patch.msgid.link/20250414234231.523-2-tatyana.e.nikolova@intel.com
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-gcd.c')
0 files changed, 0 insertions, 0 deletions