Query : drivers/usb/gadget/function/f_eem.c : eem_bind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux