drm/nouveau: use kmemdup for edid allocation/copying
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 27 Jan 2013 16:04:48 +0000 (17:04 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 20 Feb 2013 06:00:39 +0000 (16:00 +1000)
commita441dbb1d674b5696e3a27a95e72988f35236c9f
treefcbd0c87cca58162725bb3e461f3c0f6b558f600
parent03e9a04050f5333c779ed37c027a6aae5644cf6c
drm/nouveau: use kmemdup for edid allocation/copying

Avoids potential null pointer dereference.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c