|
@@ -93,6 +93,7 @@ static long media_device_enum_entities(struct media_device *mdev,
|
|
|
struct media_entity *ent;
|
|
|
struct media_entity_desc u_ent;
|
|
|
|
|
|
+ memset(&u_ent, 0, sizeof(u_ent));
|
|
|
if (copy_from_user(&u_ent.id, &uent->id, sizeof(u_ent.id)))
|
|
|
return -EFAULT;
|
|
|
|