Re: [Devel] [PATCH 1/1] Drivers: md: ploop - Do not leak a page on allocation failure

2022-07-20 Thread Vasily Averin
Hi Alexander! On 7/20/22 14:05, Alexander Atanasov wrote: > Fix off-by-one error - tries to free the failed allocation and > it leaks the first successful Could you please elaborate? I do not see the difference in behavior. if we have failed on 2nd allocation we have i = 1 io_vec[0] was set io_

Re: [Devel] [PATCH 1/1] Drivers: md: ploop - Do not leak a page on allocation failure

2022-07-20 Thread Vasily Averin
On 7/20/22 21:02, Alexander Atanasov wrote: > Hi, > > On 20/07/2022 20:57, Vasily Averin wrote: > >> Hi Alexander! >> >> On 7/20/22 14:05, Alexander Atanasov wrote: >>> Fix off-by-one error - tries to free the failed allocation and >>> it leaks the first successful >> Could you please elaborate?