Skip to contentSkip to conversation

USB: serial: mos7720: fix mos_parport refcount imbalance on error path

PATCH New Johan Hovold 1 participant 1 message Mar 20, 2019 USB

lore
Share & tools
lore
#0 lore raw

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() and mos_parport assignment to the end of urbtrack initialisation is a better way, so move it. and mos_parport do not used until urbtrack initialisation.

---

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