Re: [PATCH 1/2 v2] sctp: sctp_sendmsg: Don't initializedefault_sinfo

From: David Miller
Date: Thu May 12 2011 - 17:31:34 EST


From: Joe Perches <joe@xxxxxxxxxxx>
Date: Thu, 12 May 2011 14:27:20 -0700

> This variable only needs initialization when cmsgs.info
> is NULL.
>
> Use memset to ensure padding is also zeroed so
> kernel doesn't leak any data.
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>

This looks a lot better, applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/