lkml.org 
[lkml]   [2020]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v3 15/35] PCI: vmd: Use msi_msg shadow structs
Date
On Wed, Oct 28 2020 at 13:49, Kees Cook wrote:
> On Sat, Oct 24, 2020 at 10:35:15PM +0100, David Woodhouse wrote:
>> + memset(&msg, 0, sizeof(*msg);
>
> This should be:
>
> + memset(msg, 0, sizeof(*msg);

memset(msg, 0, sizeof(*msg));

Then it compiles _and_ is correct :)

\
 
 \ /
  Last update: 2020-10-29 03:02    [W:0.213 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site