linux-stable/drivers/ipack
Johan Hovold 9c5b77a7ff ipack: ipoctal: fix module reference leak
commit bb8a4fcb21 upstream.

A reference to the carrier module was taken on every open but was only
released once when the final reference to the tty struct was dropped.

Fix this by taking the module reference and initialising the tty driver
data when installing the tty.

Fixes: 82a82340ba ("ipoctal: get carrier driver to avoid rmmod")
Cc: stable@vger.kernel.org      # 3.18
Cc: Federico Vaga <federico.vaga@cern.ch>
Acked-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210917114622.5412-6-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-10-06 15:31:25 +02:00
..
carriers ipack: tpci200: fix memory leak in the tpci200_register 2021-08-26 08:36:48 -04:00
devices ipack: ipoctal: fix module reference leak 2021-10-06 15:31:25 +02:00
Kconfig
Makefile
ipack.c ipack: Improve a size determination in ipack_bus_register() 2017-05-18 16:59:06 +02:00