Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ed379b1 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian
Browse files

Revert "[media] media: Init the reserved fields of struct media_link_desc"



Reverting this commit to pull in the upstream version of this fix.
It'll make future kernel migrations easier.

This reverts commit e28d0509.

Change-Id: Iab08f6c239cde9d59ed025cb68cbf233b777a614
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent 73116956
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ static long __media_device_enum_links(struct media_device *mdev,
		unsigned int p;

		for (p = 0; p < entity->num_pads; p++) {
			struct media_pad_desc pad = {0};
			struct media_pad_desc pad;
			media_device_kpad_to_upad(&entity->pads[p], &pad);
			if (copy_to_user(&links->pads[p], &pad, sizeof(pad)))
				return -EFAULT;