ANDROID: Revert out of tree difference by unclean revert
Commit88adaf726e("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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user