From: Daniel Vetter Date: Fri, 20 Sep 2013 22:35:38 +0000 (+0200) Subject: drm/i915: Use kcalloc more X-Git-Tag: v3.13-rc1~76^2~80^2~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1e2265332e9344f913811ac6d2b84a506195bd8;p=pandora-kernel.git drm/i915: Use kcalloc more No buffer overflows here, but better safe than sorry. v2: - Fixup the sizeof conversion, I've missed the pointer deref (Jani). - Drop the redundant GFP_ZERO, kcalloc alreads memsets (Jani). - Use kmalloc_array for the execbuf fastpath to avoid the memset (Chris). I've opted to leave all other conversions as-is since they aren't in a fastpath and dealing with cleared memory instead of random garbage is just generally nicer. Cc: Jani Nikula Cc: Chris Wilson Reviewed-by: Jani Nikula [danvet: Drop the contentious kmalloc_array hunk in execbuf.] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed