android_kernel_sony_sdm845/drivers/usb/class
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Matthias Reichl 4826a0bef6 USB: cdc-acm: restore capability check order
commit 62d65bdd9d05158aa2547f8ef72375535f3bc6e3 upstream.

commit b401f8c4f492c ("USB: cdc-acm: fix rounding error in TIOCSSERIAL")
introduced a regression by changing the order of capability and close
settings change checks. When running with CAP_SYS_ADMIN setting the
close settings to the values already set resulted in -EOPNOTSUPP.

Fix this by changing the check order back to how it was before.

Fixes: b401f8c4f492c ("USB: cdc-acm: fix rounding error in TIOCSSERIAL")
Cc: Anthony Mallet <anthony.mallet@laas.fr>
Cc: stable <stable@vger.kernel.org>
Cc: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Matthias Reichl <hias@horus.com>
Link: https://lore.kernel.org/r/20200327150350.3657-1-hias@horus.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-02 17:20:36 +02:00
..
cdc-acm.c USB: cdc-acm: restore capability check order 2020-04-02 17:20:36 +02:00
cdc-acm.h cdc-acm: fix abnormal DATA RX issue for Mediatek Preloader. 2019-01-09 16:16:44 +01:00
cdc-wdm.c cdc-wdm: pass return value of recover_from_urb_loss 2020-01-29 10:24:16 +01:00
Kconfig
Makefile
usblp.c USB: usblp: fix use-after-free on disconnect 2019-10-29 09:15:17 +01:00
usbtmc.c USB: usbtmc: fix probe error path 2017-03-30 09:41:24 +02:00