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>
This commit is contained in:
Родитель
8ae516aa8b
Коммит
a1f84f57f9
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче