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>
Wed, 25 Mar 2020 07:06:13 +0000 (08:06 +0100)
commitc626124296795f53740ae242ac8ff303a801bc17
tree71bc645c4697de68508d4e6887cd4a854c50f59b
parent6c1051ffc77feffc30d3f0f24defd8032b6c42e3
USB: cdc-acm: fix close_delay and closing_wait units in TIOCSSERIAL

[ Upstream commit 633e2b2ded739a34bd0fb1d8b5b871f7e489ea29 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/class/cdc-acm.c