diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-11-26 12:50:50 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-28 14:35:23 +1000 |
commit | a1f84f57f9f7a5060f17482fc26b39174ecb7a28 (patch) | |
tree | 102bc8ad0121a8475f1f040d0d376df6487323b9 /drivers | |
parent | 8ae516aa8b8161254d3e402b3348b2a9b8d1efd0 (diff) | |
download | linux-stable-a1f84f57f9f7a5060f17482fc26b39174ecb7a28.tar.gz linux-stable-a1f84f57f9f7a5060f17482fc26b39174ecb7a28.tar.bz2 linux-stable-a1f84f57f9f7a5060f17482fc26b39174ecb7a28.zip |
drm/sysfs: fix OOM verification
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c index bd2bca395792..c22c3097c3e8 100644 --- 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->kdev) { r = -ENOMEM; goto error; } |