Message ID | 424ac093-cbe5-17f8-6e03-5e25d7e04269@users.sourceforge.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/qxl/qxl_kms.c b/drivers/gpu/drm/qxl/qxl_kms.c index 76780c2..f8f0261 100644 --- a/drivers/gpu/drm/qxl/qxl_kms.c +++ b/drivers/gpu/drm/qxl/qxl_kms.c @@ -306,7 +306,7 @@ int qxl_driver_load(struct drm_device *dev, unsigned long flags) struct qxl_device *qdev; int r; - qdev = kzalloc(sizeof(struct qxl_device), GFP_KERNEL); + qdev = kzalloc(sizeof(*qdev), GFP_KERNEL); if (qdev == NULL) return -ENOMEM;