]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: free opts struct on error recovery
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Thu, 25 Jul 2013 07:13:18 +0000 (09:13 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 25 Jul 2013 17:35:58 +0000 (20:35 +0300)
commitc3ea3ae7d98ec763216497479dec59a0b10f2c4a
treeeb47bc542fac6b1912b8f81cc03c94fff4cc387b
parent0f231c3991803d7dc89035788d9ee254e9b1f535
usb: gadget: free opts struct on error recovery

Fix memory leaks introduced in commits:

3cb4fda5adde4ca64a0b9a168a790392d9df3688
usb: gadget: f_ncm: convert to new function interface with backward compatibility

507010bc7c26c5da2b820543c0551074819f85aa
usb: gadget: f_ecm: convert to new function interface with backward compatibility

92dbb36e55b466b0a6c48c85f45265db21b39197
usb: gadget: f_phonet: convert to new function interface with backward compatibility

050a391f2e283911f102eca1bb130515f09cb6f2
usb: gadget: f_eem: convert to new function interface with backward compatibility

66fccfe5900c28606340beef5c38a47dd95d2768
usb: gadget: f_subset: convert to new function interface with backward compatibility

e1f7dd1b5780775d626c0a1f92ec5a6d948712c0
usb: gadget: f_rndis: convert to new function interface with backward compatibility

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/f_ecm.c
drivers/usb/gadget/f_eem.c
drivers/usb/gadget/f_ncm.c
drivers/usb/gadget/f_phonet.c
drivers/usb/gadget/f_rndis.c
drivers/usb/gadget/f_subset.c