[PATCH] drm/mst: Don't use uninitialized fields of the sideband message header

2014-07-15 Thread Daniel Vetter
On Mon, Jul 14, 2014 at 12:13:18PM +0100, Damien Lespiau wrote: > We could be using uninitialized fields of the header in > drm_dp_encode_sideband_msg_hdr(), for instance hdr->somt is set to 1 in > the first patcket but never set to 0 otherwise. > > Always clear the header at the start then. > >

[PATCH] drm/mst: Don't use uninitialized fields of the sideband message header

2014-07-14 Thread Damien Lespiau
We could be using uninitialized fields of the header in drm_dp_encode_sideband_msg_hdr(), for instance hdr->somt is set to 1 in the first patcket but never set to 0 otherwise. Always clear the header at the start then. Signed-off-by: Damien Lespiau --- drivers/gpu/drm/drm_dp_mst_topology.c | 2