projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ae516a
)
drm/sysfs: fix OOM verification
author
David Herrmann
<dh.herrmann@gmail.com>
Tue, 26 Nov 2013 11:50:50 +0000
(12:50 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 28 Nov 2013 04:35:23 +0000
(14:35 +1000)
Copy/Paste typo.. we need to test for ->kdev instead of ->dev.
Reported-by: Juha Leppänen <juha_efku@dnainternet.net>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_sysfs.c
b/drivers/gpu/drm/drm_sysfs.c
index bd2bca395792a600deda6c6f2a1a28314ea89374..c22c3097c3e857ba823cd9c339333983842c4ecf 100644
(file)
--- a/
drivers/gpu/drm/drm_sysfs.c
+++ b/
drivers/gpu/drm/drm_sysfs.c
@@
-516,7
+516,7
@@
int drm_sysfs_device_add(struct drm_minor *minor)
minor_str = "card%d";
minor->kdev = kzalloc(sizeof(*minor->kdev), GFP_KERNEL);
- if (!minor->dev) {
+ if (!minor->
k
dev) {
r = -ENOMEM;
goto error;
}