Hi,
  Isn't the "usb_free_all_descriptors(f)" after "fail" label
redundant? Is it needed at all ?

  FILE          : drivers/usb/gadget/function/f_eem.c
  FUNCTION : eem_bind

In fact this can cause "double-free" in case of failures from
"usb_assign_descriptors"; cause
usb_assign_descriptors already calls the usb_free_all_descriptors in
case of error.


Cheers,
Pavitra
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to