Re: [PATCH] scsi, block: fix memory leak of sdpk on when gd fails to allocate

2017-02-22 Thread Martin K. Petersen
> "Colin" == Colin King writes: Colin> On an allocation failure of gd, the current exit path is via Colin> out_free_devt which leaves sdpk still allocated and hence it gets Colin> leaked. Fix this by correcting the order of resource free'ing Colin> with a change in the error exit path labels.

Re: [PATCH] scsi, block: fix memory leak of sdpk on when gd fails to allocate

2017-02-15 Thread Bart Van Assche
On Fri, 2017-02-03 at 19:38 +, Colin King wrote: > From: Colin Ian King > > On an allocation failure of gd, the current exit path is via out_free_devt > which leaves sdpk still allocated and hence it gets leaked. Fix this by > correcting the order of resource free'ing with a change in the err