From: Marcin Slusarz Date: Sun, 21 Oct 2012 23:59:20 +0000 (+1000) Subject: drm/nouveau: validate vbios size X-Git-Tag: v3.7-rc3~45^2~6^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e4845bad84689fbaacc86bc54a0b99d5d3c1fc;p=pandora-kernel.git drm/nouveau: validate vbios size Without checking, we could detect vbios size as 0, allocate 0-byte array (kmalloc returns invalid pointer for such allocation) and crash in nouveau_bios_score while checking for vbios signature. Reported-by: Heinz Diehl Signed-off-by: Marcin Slusarz Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed