diff options
author | Todor Tomov <ttomov@mm-sol.com> | 2011-04-08 11:07:30 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-04-08 10:32:49 +0200 |
commit | 5a5014feb7aeef1ccf8146e0a4fb53fc5d22bdcd (patch) | |
tree | 8e1a9f032ad874b5729974925027a0f4a1edb36e /src | |
parent | 28212f9aa0d44a85818c9a1fdf7e743bf0d69e12 (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>
Diffstat (limited to 'src')
-rw-r--r-- | src/media.c | 4 |
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; } |