USB: serial: mos7720: fix mos_parport refcount imbalance on error path
PATCH v2 1/1 USB: serial: mos7720: fix mos_parport refcount imbalance on error path
Quoted 6 lines · Lin Yi
Johan said that move the
kref_get()andmos_parportassignment to the end of urbtrack initialisation is a better way, so move it. andmos_parportdo not used until urbtrack initialisation.Signed-off-by Lin Yi <[email protected]>---
Thanks for the v2. Now applied with a Fixes and Cc-stable tag and a slightly updated commit message in order to make it more self-contained:
https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git/commit/?h=usb-linus&id=2908b076f5198d231de62713cb2b633a3a4b95ac
Johan