Re: [PATCH v14 03/19] x86: Secure Launch Resource Table header file

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

 



On 4/23/25 11:23 AM, ALOK TIWARI wrote:


On 21-04-2025 21:56, Ross Philipson wrote:
+static inline int
+slr_add_entry(struct slr_table *table,
+          struct slr_entry_hdr *entry)
+{
+    struct slr_entry_hdr *end;
+
+    if ((table->size + entry->size) > table->max_size)
+        return -1;
+
+    memcpy((u8 *)table + table->size - sizeof(*end), entry, entry- >size);
+    table->size += entry->size;
+
+    end  = (struct slr_entry_hdr *)((u8 *)table + table->size - sizeof(*end));

remove extra ' ' before =

Ack thanks


+    end->tag = SLR_ENTRY_END;
+    end->size = sizeof(*end);
+
+    return 0;


Thanks,
Alok





[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux