drm/nouveau/bios: memset dcb struct to zero before parsing
authorBen Skeggs <bskeggs@redhat.com>
Mon, 8 Sep 2014 00:33:32 +0000 (10:33 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:47:56 +0000 (08:47 -0800)
commit3b163cb4c566c773d049648ec8da752d37f5c200
tree69e753af0592bccd01c6d9e97d0658142bffc416
parenta3cb445501d51791746af4066e480650d85d2f97
drm/nouveau/bios: memset dcb struct to zero before parsing

commit 595d373f1e9c9ce0fc946457fdb488e8a58972cd upstream.

Fixes type/mask calculation being based on uninitialised data for VGA
outputs.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/core/subdev/bios/dcb.c