Re: [media] Siano: Use common error handling code in smsusb_init_device()

From: SF Markus Elfring
Date: Wed Sep 20 2017 - 13:18:46 EST

> If smscore_register_device() succeeds then mdev is freed when we call
> smsusb_term_device(intf); The call tree is:

Thanks for your constructive information.

How do you think about another implementation detail in this function then?

May the statement âkfree(mdev);â be executed before âsmsusb_term_device(intf);â
in one if branch?