ANDROID: Revert out of tree difference by unclean revert

Commit 88adaf726e ("Revert "ANDROID: drivers: gpu: drm: fix bugs
encountered while fuzzing"") introduced an out-of-tree difference that
this patch compensates.

Fixes: 88adaf726e ("Revert "ANDROID: drivers: gpu: drm: fix bugs encountered while fuzzing"")
Signed-off-by: Matthias Maennich <maennich@google.com>
Change-Id: Ie6d125567365fea8db735e9ad9d8af4262d958fc
This commit is contained in:
Matthias Maennich
2020-10-30 14:13:14 +00:00
parent c3d61b03ad
commit 4a5aea3471
+1 -1
View File
@@ -561,7 +561,7 @@ drm_property_create_blob(struct drm_device *dev, size_t length,
struct drm_property_blob *blob;
int ret;
if (!length || length > ULONG_MAX - sizeof(struct drm_property_blob))
if (!length || length > INT_MAX - sizeof(struct drm_property_blob))
return ERR_PTR(-EINVAL);
blob = kvzalloc(sizeof(struct drm_property_blob)+length, GFP_KERNEL);