From: Arto Merilainen Date: Wed, 29 May 2013 10:26:03 +0000 (+0300) Subject: gpu: host1x: Check reloc table before usage X-Git-Tag: v3.11-rc1~65^2~62^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5060d8ec7cfc29dd399b4fe952ba96e7a88aa778;p=pandora-kernel.git gpu: host1x: Check reloc table before usage The firewall assumed that the user space always delivers a relocation table when it is accessing address registers. If userspace did not deliver a relocation table and tried to access the address registers, the code performed bad memory accesses. This patch modifies the firewall to check correctly that the firewall table is available before accessing it. In addition, check_reloc() is converted to use boolean return value (true when the reloc is valid, false when invalid). Signed-off-by: Arto Merilainen Acked-By: Terje Bergstrom Signed-off-by: Thierry Reding --- Reading git-diff-tree failed