diff options
author | Axel Lin | 2012-02-10 13:04:52 +0100 |
---|---|---|
committer | Dave Airlie | 2012-02-13 13:07:36 +0100 |
commit | 51a59ac8739b333eaa43a3102b6acaab5037bfa2 (patch) | |
tree | d0c255c23196b38ff31f1b3d68996f729d95e1d1 /drivers/gpu/drm/i915 | |
parent | Merge branch 'drm-vmware-next' into drm-core-next (diff) | |
download | kernel-qcow2-linux-51a59ac8739b333eaa43a3102b6acaab5037bfa2.tar.gz kernel-qcow2-linux-51a59ac8739b333eaa43a3102b6acaab5037bfa2.tar.xz kernel-qcow2-linux-51a59ac8739b333eaa43a3102b6acaab5037bfa2.zip |
drm: Fix kcalloc parameters swapped
The first parameter should be "number of elements" and the second parameter
should be "element size".
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r-- | drivers/gpu/drm/i915/intel_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index 7fa4f640e6fd..03573e00471b 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++ b/drivers/gpu/drm/i915/intel_i2c.c @@ -375,7 +375,7 @@ int intel_setup_gmbus(struct drm_device *dev) struct drm_i915_private *dev_priv = dev->dev_private; int ret, i; - dev_priv->gmbus = kcalloc(sizeof(struct intel_gmbus), GMBUS_NUM_PORTS, + dev_priv->gmbus = kcalloc(GMBUS_NUM_PORTS, sizeof(struct intel_gmbus), GFP_KERNEL); if (dev_priv->gmbus == NULL) return -ENOMEM; |