projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drm/i915: Allocate the pipe_crc->entires with kcalloc()
[deliverable/linux.git]
/
drivers
/
gpu
/
drm
/
i915
/
i915_debugfs.c
diff --git
a/drivers/gpu/drm/i915/i915_debugfs.c
b/drivers/gpu/drm/i915/i915_debugfs.c
index 218e27cb3e2fb2802ff5068fe264ca72b56ef335..95829ebecf21b8067dbbeb3333feac1f618fdead 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_debugfs.c
+++ b/
drivers/gpu/drm/i915/i915_debugfs.c
@@
-3415,8
+3415,8
@@
static int pipe_crc_set_source(struct drm_device *dev, enum pipe pipe,
DRM_DEBUG_DRIVER("collecting CRCs for pipe %c, %s\n",
pipe_name(pipe), pipe_crc_source_name(source));
DRM_DEBUG_DRIVER("collecting CRCs for pipe %c, %s\n",
pipe_name(pipe), pipe_crc_source_name(source));
- entries = k
zalloc(sizeof(*pipe_crc->entries) *
-
INTEL_PIPE_CRC_ENTRIES_NR
,
+ entries = k
calloc(INTEL_PIPE_CRC_ENTRIES_NR,
+
sizeof(pipe_crc->entries[0])
,
GFP_KERNEL);
if (!entries)
return -ENOMEM;
GFP_KERNEL);
if (!entries)
return -ENOMEM;
This page took
0.026232 seconds
and
5
git commands to generate.