]> git.baikalelectronics.ru Git - kernel.git/commit
USB: cdc-acm: fix close_delay and closing_wait units in TIOCSSERIAL
authorAnthony Mallet <anthony.mallet@laas.fr>
Thu, 12 Mar 2020 13:31:00 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 19:27:08 +0000 (20:27 +0100)
commitc5e99f5ff49e2e49565743c5255cd3c6fca7dae4
tree6a765c41aff93d529102d51d43836f472d0fa9ec
parentc7cf2fbbfde188f8335a0e33d825f681c1bc4a67
USB: cdc-acm: fix close_delay and closing_wait units in TIOCSSERIAL

close_delay and closing_wait are specified in hundredth of a second but stored
internally in jiffies. Use the jiffies_to_msecs() and msecs_to_jiffies()
functions to convert from each other.

Signed-off-by: Anthony Mallet <anthony.mallet@laas.fr>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200312133101.7096-1-anthony.mallet@laas.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c