From: Emil Velikov Date: Sat, 11 Jun 2011 12:30:32 +0000 (+0100) Subject: drm/nouveau/pm: Prevent overflow in nouveau_perf_init() X-Git-Tag: v3.0-rc4~2^2~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2905544073f6ec235b44f624c66f52b61221a16c;p=pandora-kernel.git drm/nouveau/pm: Prevent overflow in nouveau_perf_init() While parsing the perf table, there is no check if the num of entries read from the vbios is less than the currently allocated number. In case of a buggy vbios this will cause overwriting of kernel memory, causing aditional problems. Add a simple check in order to prevent the case Signed-off-by: Emil Velikov Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed