diff options
Diffstat (limited to 'drivers/char/drm/drm_stub.c')
-rw-r--r-- | drivers/char/drm/drm_stub.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/char/drm/drm_stub.c b/drivers/char/drm/drm_stub.c index b1ead37c51d6..a9bb18ac3a2b 100644 --- a/drivers/char/drm/drm_stub.c +++ b/drivers/char/drm/drm_stub.c | |||
@@ -75,6 +75,10 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev, | |||
75 | if (dev->maplist == NULL) | 75 | if (dev->maplist == NULL) |
76 | return -ENOMEM; | 76 | return -ENOMEM; |
77 | INIT_LIST_HEAD(&dev->maplist->head); | 77 | INIT_LIST_HEAD(&dev->maplist->head); |
78 | if (drm_ht_create(&dev->map_hash, 12)) { | ||
79 | drm_free(dev->maplist, sizeof(*dev->maplist), DRM_MEM_MAPS); | ||
80 | return -ENOMEM; | ||
81 | } | ||
78 | 82 | ||
79 | /* the DRM has 6 basic counters */ | 83 | /* the DRM has 6 basic counters */ |
80 | dev->counters = 6; | 84 | dev->counters = 6; |