]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
staging: gigaset: fix illegal free on probe errors
authorJohan Hovold <johan@kernel.org>
Mon, 2 Dec 2019 08:56:09 +0000 (09:56 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:33 +0000 (14:22 -0300)
commit899dd77ab9a3c30dc592e8ece3aca1a1c6c9b3c2
treea2217e1763a287f03e6e8988c9cff83758c8f4a2
parent978b7e447d3f9e8c518baf26a185f25f559a14aa
staging: gigaset: fix illegal free on probe errors

BugLink: https://bugs.launchpad.net/bugs/1857158
commit 84f60ca7b326ed8c08582417493982fe2573a9ad upstream.

The driver failed to initialise its receive-buffer pointer, something
which could lead to an illegal free on late probe errors.

Fix this by making sure to clear all driver data at allocation.

Fixes: 2032e2c2309d ("usb_gigaset: code cleanup")
Cc: stable <stable@vger.kernel.org> # 2.6.33
Cc: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191202085610.12719-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/isdn/gigaset/usb-gigaset.c