Re: [PATCH v2 7/8] crypto: ccp: Use the stack and common buffer for INIT command

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

 



On 07/04/21 07:20, Christophe Leroy wrote:

+    struct sev_data_init data;

struct sev_data_init data = {0, 0, 0, 0};

Having to count the number of items is suboptimal. The alternative could be {} (which however is technically not standard C), {0} (a bit mysterious, but it works) and memset. I kept the latter to avoid touching the submitter's patch too much.

Paolo




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux