Re: [PATCH for-8.2] test-resv-mem: Fix CID 1523911

2023-11-13 Thread Thomas Huth
On 13/11/2023 08.56, Cédric Le Goater wrote: On 11/13/23 08:21, Thomas Huth wrote: On 10/11/2023 09.36, Eric Auger wrote: Coverity complains about passing "&expected" to "run_range_inverse_array", which dereferences null "expected". I guess the problem is that the compare_ranges() loop derefere

Re: [PATCH for-8.2] test-resv-mem: Fix CID 1523911

2023-11-12 Thread Cédric Le Goater
On 11/13/23 08:21, Thomas Huth wrote: On 10/11/2023 09.36, Eric Auger wrote: Coverity complains about passing "&expected" to "run_range_inverse_array", which dereferences null "expected". I guess the problem is that the compare_ranges() loop dereferences 'e' without testing it. However the loop

Re: [PATCH for-8.2] test-resv-mem: Fix CID 1523911

2023-11-12 Thread Thomas Huth
On 10/11/2023 09.36, Eric Auger wrote: Coverity complains about passing "&expected" to "run_range_inverse_array", which dereferences null "expected". I guess the problem is that the compare_ranges() loop dereferences 'e' without testing it. However the loop condition is based on 'ranges' which is