staging: gigaset: fix illegal free on probe errors
authorJohan Hovold <johan@kernel.org>
Mon, 2 Dec 2019 08:56:09 +0000 (09:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:34:33 +0000 (20:34 +0100)
commit0f5e357b8ff40103a9bbb018176c3bd8ba3abfb6
treed45efb123c45db0b8b327d7cb1d0235d2aa6865f
parenta5778b88c76da9647e8d53e45822cd885e8e91c1
staging: gigaset: fix illegal free on probe errors

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>
drivers/isdn/gigaset/usb-gigaset.c