OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12b6d9d
)
drm/nouveau: testing the wrong variable
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 18 Oct 2011 06:07:51 +0000
(09:07 +0300)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 9 Nov 2011 22:59:43 +0000
(08:59 +1000)
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>
drivers/gpu/drm/nouveau/nouveau_perf.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_perf.c
b/drivers/gpu/drm/nouveau/nouveau_perf.c
index
9f178aa
..
33d03fb
100644
(file)
--- 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;
}