Re: [PATCH v2 18/27] compat_ioctl: scsi: move ioctl handling into drivers

From: Arnd Bergmann
Date: Thu Dec 19 2019 - 07:06:58 EST


On Wed, Dec 18, 2019 at 8:57 PM Ben Hutchings
<ben.hutchings@xxxxxxxxxxxxxxx> wrote:
>
> On Tue, 2019-12-17 at 23:16 +0100, Arnd Bergmann wrote:
> > +
> > + /*
> > + * CDROM ioctls are handled in the block layer, but
> > + * do the scsi blk ioctls here.
> > + */
> > + ret = scsi_cmd_blk_ioctl(bdev, mode, cmd, argp);
> > + if (ret != -ENOTTY)
> > + return ret;
>
> This needs to be be "goto put;"

Fixed now, thanks!

Arnd