Re: [PATCH] scsi: cxlflash: Fix an error handling path in 'cxlflash_disk_attach()'
From: Matthew R. Ochs
Date: Tue Aug 15 2017 - 20:21:42 EST
> On Aug 15, 2017, at 3:18 PM, Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote:
>
> 'rc' is known to be 0 at this point.
> If 'create_context()' fails, returns -ENOMEM instead of 0 which means
> success.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
Yep, that's a bug.
Acked-by: Matthew R. Ochs <mrochs@xxxxxxxxxxxxxxxxxx>