Re: [PATCH] scsi: sg: allocate with __GFP_ZERO in sg_build_indirect()

From: Christoph Hellwig
Date: Fri May 18 2018 - 11:19:50 EST


On Fri, May 18, 2018 at 04:23:18PM +0200, Alexander Potapenko wrote:
> This shall help avoid copying uninitialized memory to the userspace
> when calling ioctl(fd, SG_IO) with an empty command.

Looks good,

Reviewed-by: Christoph Hellwig <hch@xxxxxx>