USB: serial: keyspan_pda: fix modem-status error handling
commit81739d0b623ebba7c63a9529ef53845dfda86e89
authorJohan Hovold <johan@kernel.org>
Wed, 4 Jul 2018 15:02:16 +0000 (4 17:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Jul 2018 11:43:23 +0000 (22 13:43 +0200)
tree4641d1e827e90f1787b8be0e6c47215050d2cd4b
parentf6a154848347977415377f0aad0aca241a2e5c0f
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