aboutsummaryrefslogtreecommitdiff
path: root/kernel/cpu
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2016-11-29 16:55:02 +0100
committerMoyster <oysterized@gmail.com>2017-06-17 15:48:51 +0200
commit7d964c1d93f06c249ce8a1bb65dba4ae2bf7133b (patch)
treefa955add9214c44146b514643aab726785de22b3 /kernel/cpu
parent3a637cf2fdaab58e244d7ba84721d6d74b411883 (diff)
USB: serial: kl5kusb105: abort on open exception path
commit 3c3dd1e058cb01e835dcade4b54a6f13ffaeaf7c upstream. Function klsi_105_open() calls usb_control_msg() (to "enable read") and checks its return value. When the return value is unexpected, it only assigns the error code to the return variable retval, but does not terminate the exception path. This patch fixes the bug by inserting "goto err_generic_close;" when the call to usb_control_msg() fails. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Pan Bian <bianpan2016@163.com> [johan: rebase on prerequisite fix and amend commit message] Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'kernel/cpu')
0 files changed, 0 insertions, 0 deletions