]> asedeno.scripts.mit.edu Git - linux.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)
commit633e2b2ded739a34bd0fb1d8b5b871f7e489ea29
tree6a765c41aff93d529102d51d43836f472d0fa9ec
parent75d7676ead19b1fbb5e0ee934c9ccddcb666b68c
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