[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+FuTSd1hj7oik1uoA+pEMhAFFrqvvPk-OLS_7wDBg08ppW+uw@mail.gmail.com>
Date: Thu, 4 Sep 2014 10:03:14 -0400
From: Willem de Bruijn <willemb@...gle.com>
To: Daniel Borkmann <dborkman@...hat.com>
Cc: Network Development <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH net-next] net-timestamp: expand documentation
>> +
>> + data = malloc(cfg_payload_len);
>> + if (!data)
>> + error(1, 0, "malloc");
>> +
>> + memset(&msg, 0, sizeof(msg));
>> + memset(&entry, 0, sizeof(entry));
>> + memset(ctrl, 0, sizeof(ctrl));
>> + memset(data, 0, sizeof(data));
>
>
> I think this memset is wrong and should rather be
> something like :
>
> memset(data, 0, cfg_payload_len);
>
Thanks, Daniel. I'll send a fix.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists