On Thu, Dec 08, 2022 at 07:17:59PM +0800, Leon Romanovsky wrote: >>>> +err_out: >>>> + for (j = 0; j < i; j++) { >>> >>> You don't need an extra variable, "while(i--)" will do the trick. >> >>No, the right range is [0, i - 1], but the "while(i--)" is [1, i]. > > Are you sure??
Yes, you are right. I will submit a v3 to add this change.