]> git.baikalelectronics.ru Git - kernel.git/commit
drm/dp-mst-helper: Don't use uninitialized fields of the sideband message header
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 14 Jul 2014 11:13:18 +0000 (12:13 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 18 Jul 2014 13:39:29 +0000 (15:39 +0200)
commit48d513321465288fe0993a534de233e20f592f7c
tree4e3e1ad856993e300fb62d0a3d5d1451efd4bba3
parent8a0f7eb6d6e7ae96886ca5cb1ec4669fa6916840
drm/dp-mst-helper: Don't use uninitialized fields of the sideband message header

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 <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_dp_mst_topology.c