Skip to content

Commit 27681ab

Browse files
Mian Yousaf KaukabFelipe Balbi
authored andcommitted
usb: gadget: uvc: fix permissions of configfs attributes
76e0da3 "usb-gadget/uvc: use per-attribute show and store methods" removed write permission for writeable attributes. Correct attribute permissions. Fixes: 76e0da3 "usb-gadget/uvc: use per-attribute show and store methods" Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Mian Yousaf Kaukab <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent 4d05591 commit 27681ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/function/uvc_configfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define UVC_ATTR(prefix, cname, aname) \
2121
static struct configfs_attribute prefix##attr_##cname = { \
2222
.ca_name = __stringify(aname), \
23-
.ca_mode = S_IRUGO, \
23+
.ca_mode = S_IRUGO | S_IWUGO, \
2424
.ca_owner = THIS_MODULE, \
2525
.show = prefix##cname##_show, \
2626
.store = prefix##cname##_store, \

0 commit comments

Comments
 (0)