linux-next: manual merge of the usb tree with the usb.current tree
Subsystems (3)
Mark Brown
maintainerHi 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.
drivers/usb/gadget/function/uvc_configfs.c +0 -0
@@@ -2143,27 -2027,15 +2028,27 @@@ static const struct configfs_attributeNULL , }; +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 , };
Quoted 49 lines · Mark Brown
Hi all,
Today's linux-next merge of the usb tree got a conflict in:
drivers/usb/gadget/function/uvc_configfs.cbetween commit:
8709574b03899("usb: gadget: uvc: fix dwFrameInterval array leak on frame removal")from the usb.current tree and commit:
01ad61c08da9f("usb: Constify structconfigfs_attributepointers")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.
drivers/usb/gadget/function/uvc_configfs.c +1
-1@@@ -2143,27 -2027,15 +2028,27 @@@ static const struct configfs_attributeNULL , }; +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,
drivers/usb/gadget/function/uvc_configfs.c
Quoted 10 lines
drivers/usb/gadget/function/uvc_configfs.c +1
-1.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 , };
Looks good, thanks!
greg k-h