drm/sysfs: fix OOM verification
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 26 Nov 2013 11:50:50 +0000 (12:50 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Nov 2013 04:35:23 +0000 (14:35 +1000)
commita1f84f57f9f7a5060f17482fc26b39174ecb7a28
tree102bc8ad0121a8475f1f040d0d376df6487323b9
parent8ae516aa8b8161254d3e402b3348b2a9b8d1efd0
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>
drivers/gpu/drm/drm_sysfs.c