USB: serial: keyspan_pda: fix modem-status error handling
authorJohan Hovold <johan@kernel.org>
Wed, 4 Jul 2018 15:02:16 +0000 (17:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jul 2018 09:39:25 +0000 (11:39 +0200)
commitf24b02c3a0818651f179bdf1026a8de67a97070f
tree887d0832e736f62e9235d8e5ee4d0995299e1405
parent7aa69d8f50be9fa1cf4ebe72d32b79a19f4dfb34
USB: serial: keyspan_pda: fix modem-status error handling

commit 01b3cdfca263a17554f7b249d20a247b2a751521 upstream.

Fix broken modem-status error handling which could lead to bits of slab
data leaking to user space.

Fixes: 3b36a8fd6777 ("usb: fix uninitialized variable warning in keyspan_pda")
Cc: stable <stable@vger.kernel.org> # 2.6.27
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/keyspan_pda.c