android_kernel_samsung_a7y1.../drivers/usb/class
Matthias Reichl 9ccd47a3aa 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-07 14:24:41 +02:00
..
cdc-acm.c USB: cdc-acm: restore capability check order 2020-04-07 14:24:41 +02:00
cdc-acm.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cdc-wdm.c cdc-wdm: pass return value of recover_from_urb_loss 2020-04-07 13:40:35 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
usblp.c USB: usblp: fix use-after-free on disconnect 2020-04-07 09:26:36 +02:00
usbtmc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30