usb: gadget: uvc: configfs: Prevent format changes after linking header
authorJoel Pepper <joel.pepper@rwth-aachen.de>
Tue, 29 May 2018 19:02:12 +0000 (21:02 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 24 Sep 2018 16:01:56 +0000 (19:01 +0300)
commitcb2200f7af8341aaf0c6abd7ba37e4c667c41639
tree8cf834b65a27bc470b12496d0e23b9a41886a192
parentb206548be6459ea5ffa82b9f1175915b225a89a1
usb: gadget: uvc: configfs: Prevent format changes after linking header

While checks are in place to avoid attributes and children of a format
being manipulated after the format is linked into the streaming header,
the linked flag was never actually set, invalidating the protections.
Update the flag as appropriate in the header link calls.

Signed-off-by: Joel Pepper <joel.pepper@rwth-aachen.de>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/usb/gadget/function/uvc_configfs.c