Hi all, Today's linux-next merge of the usb tree got a conflict in: drivers/usb/gadget/function/uvc_configfs.c between commit: 8709574b03899 ("usb: gadget: uvc: fix dwFrameInterval array leak on frame removal") from the usb.current tree and commit: 01ad61c08da9f ("usb: Constify struct configfs_attribute pointers") from the usb tree. I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts. diff --cc drivers/usb/gadget/function/uvc_configfs.c index a8717c95e5edf,3387060bab55a..0000000000000 --- a/drivers/usb/gadget/function/uvc_configfs.c +++ b/drivers/usb/gadget/function/uvc_configfs.c @@@ -2143,27 -2027,15 +2028,27 @@@ static const struct configfs_attribute NULL, }; +static void uvcg_frame_release(struct config_item *item) +{ + struct uvcg_frame *frm = to_uvcg_frame(item); + + kfree(frm->dw_frame_interval); + kfree(frm); +} + +static const struct configfs_item_operations uvcg_frame_item_ops = { + .release = uvcg_frame_release, +}; + static const struct config_item_type uvcg_frame_type1 = { - .ct_item_ops = &uvcg_config_item_ops, + .ct_item_ops = &uvcg_frame_item_ops, - .ct_attrs = uvcg_frame_attrs1, + .ct_attrs_const = uvcg_frame_attrs1, .ct_owner = THIS_MODULE, }; static const struct config_item_type uvcg_frame_type2 = { - .ct_item_ops = &uvcg_config_item_ops, + .ct_item_ops = &uvcg_frame_item_ops, - .ct_attrs = uvcg_frame_attrs2, + .ct_attrs_const = uvcg_frame_attrs2, .ct_owner = THIS_MODULE, };