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 05:35:23 +0100 |
commit | a1f84f57f9f7a5060f17482fc26b39174ecb7a28 (patch) | |
tree | 102bc8ad0121a8475f1f040d0d376df6487323b9 /drivers/gpu/drm/drm_sysfs.c | |
parent | Merge tag 'trace-fixes-v3.13-rc1' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-a1f84f57f9f7a5060f17482fc26b39174ecb7a28.tar.xz linux-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/gpu/drm/drm_sysfs.c')
-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; } |