From 5a5014feb7aeef1ccf8146e0a4fb53fc5d22bdcd Mon Sep 17 00:00:00 2001 From: Todor Tomov Date: Fri, 8 Apr 2011 11:07:30 +0300 Subject: 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 --- src/media.c | 4 ++-- 1 file 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; } -- cgit v1.2.3