summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodor Tomov <ttomov@mm-sol.com>2011-04-08 11:07:30 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-04-08 10:32:49 +0200
commit5a5014feb7aeef1ccf8146e0a4fb53fc5d22bdcd (patch)
tree8e1a9f032ad874b5729974925027a0f4a1edb36e
parent28212f9aa0d44a85818c9a1fdf7e743bf0d69e12 (diff)
Update stored link flags correctly in media_setup_link()
The flags stored in media_link structure are not updated correctly if media_setup_link() is called on an immutable link - the immutable flag is cleared. Fix this. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
-rw-r--r--src/media.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/media.c b/src/media.c
index 7e4174d..e3cab86 100644
--- a/src/media.c
+++ b/src/media.c
@@ -128,8 +128,8 @@ int media_setup_link(struct media_device *media,
return ret;
}
- link->flags = flags;
- link->twin->flags = flags;
+ link->flags = ulink.flags;
+ link->twin->flags = ulink.flags;
return 0;
}