Re: PATCH] scsi: stex: properly zero out the passthrough command structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 08, 2022 at 02:16:33PM -0400, Linus Torvalds wrote:
> Sorry for bad message ID threading, but I don't have the original
> email from Greg in my email, just a link to it on lore..
> 
> I'd suggest perhaps a slightly bigger patch than just adding the memset().
> 
> Something like the attached?
> 
> Entirely untested, but it would seem to be the cleaner way to go about this. No?
> 
>             Linus

That also works.  There are no struct holes. And even if there were they
would be zeroed because the reserved members are not set.

Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

regards,
dan carpenter




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux