aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_perf.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2011-10-18 09:07:51 +0300
committerBen Skeggs <bskeggs@redhat.com>2011-11-10 08:59:43 +1000
commitef5ced4bfe48ba2acb16e867ceb9c473dd0ef192 (patch)
tree5e3323ee6add369c79d464f34fc65c5761c86dff /drivers/gpu/drm/nouveau/nouveau_perf.c
parentdrm/nvc0/vram: storage type 0xc3 is not compressed (diff)
downloadlinux-dev-ef5ced4bfe48ba2acb16e867ceb9c473dd0ef192.tar.xz
linux-dev-ef5ced4bfe48ba2acb16e867ceb9c473dd0ef192.zip
drm/nouveau: testing the wrong variable
memtimings is a valid pointer here, the intent was to test for kcalloc() failure. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_perf.c b/drivers/gpu/drm/nouveau/nouveau_perf.c
index 9f178aa94162..33d03fbf00df 100644
--- a/drivers/gpu/drm/nouveau/nouveau_perf.c
+++ b/drivers/gpu/drm/nouveau/nouveau_perf.c
@@ -239,7 +239,7 @@ nouveau_perf_init(struct drm_device *dev)
if(version == 0x15) {
memtimings->timing =
kcalloc(entries, sizeof(*memtimings->timing), GFP_KERNEL);
- if(!memtimings) {
+ if (!memtimings->timing) {
NV_WARN(dev,"Could not allocate memtiming table\n");
return;
}