Re: [PATCH] scsi: sd: Jump to out_free_index if device_add{,_disk}() fail

From: Christoph Hellwig
Date: Tue Mar 29 2022 - 03:04:17 EST


On Tue, Mar 29, 2022 at 08:18:16AM +0200, Fabio M. De Francesco wrote:
> Yes, correct. I've just looked at how put_device() is implemented. I didn't
> know how it works until you made me notice. Thanks!
>
> Aside this I sent another diff to Syzbot. Today, at 4.30 CET, it replied again
> that, after applying and testing my new patch, Syzkaller was not anymore able
> to trigger the memory leak that it had reported.
>
> This is the new diff...

Yes, this new diff makes much more sense.