path: root/drivers/gpu/drm
diff options
authorVille Syrjälä <>2018-02-23 21:25:01 +0200
committerVille Syrjälä <>2018-03-16 15:44:01 +0200
commit9c60583c0b0fd6f3a5b61fda3eb604ce218b9d25 (patch)
tree7d3163790f8079d543714f716b4560f13d26f431 /drivers/gpu/drm
parent0a00ac97d29e65093c0d4c7c4f5827528168b73a (diff)
Revert "drm: Use a flexible array member for blob property data"
Using a flexible array for the blob data was a mistake by me. It forces all users of the blob data to cast blob->data to something else. void* is clearly superior so let's go back to the original scheme. Not a clean revert as the code has moved. This reverts commit d63f5e6bf6f2a1573ea39c9937cdf5ab0b3a4b77. Signed-off-by: Ville Syrjälä <> Link: Reviewed-by: Shashank Sharma <> Reviewed-by: Daniel Vetter <>
Diffstat (limited to 'drivers/gpu/drm')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm/drm_property.c
index 6ac6ee41a6a3..8f4672daac7f 100644
--- a/drivers/gpu/drm/drm_property.c
+++ b/drivers/gpu/drm/drm_property.c
@@ -567,6 +567,7 @@ drm_property_create_blob(struct drm_device *dev, size_t length,
/* This must be explicitly initialised, so we can safely call list_del
* on it in the removal handler, even if it isn't in a file list. */
+ blob->data = (void *)blob + sizeof(*blob);
blob->length = length;
blob->dev = dev;