Commits
Jean-Jacques Hiblot committed c8e28bf3167
usb: dwc3: explicitly free the allocated structure if dwc3_alloc_one_event_buffer() fails This unbalanced allocation problem has been reported by klokwork: Possible memory leak. Dynamic memory stored in 'evt' allocated through function 'devm_kzalloc' at line 114 can be lost at line 124 The reason is that devm_kzalloc() behaves like a regular malloc() if DEVRES is not enabled. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>