android_kernel_xiaomi_sm8350/drivers/tty/serdev
Chanho Park 086e8bbff6 ANDROID: tty: fix tty name overflow
The tty name can be up to 8 chars if id is greater than 10 such as
ttyUSB11. In that case, the name will be overflowed. To prevent this,
this patch removes snprintf and adds comparison the idx value of
pdev_tty_port only if pdev_tty_port is specified.

Bug: 157525691
Bug: 161501868
Fixes: 21d085e1cc2c ("ANDROID: serdev: restrict claim of platform devices")
Change-Id: I2a766c9a83a09a1d386686638d8e9c529eeeb735
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
2020-08-23 16:35:32 +00:00
..
core.c ANDROID: serdev: restrict claim of platform devices 2020-03-13 15:30:41 +00:00
Kconfig
Makefile
serdev-ttyport.c ANDROID: tty: fix tty name overflow 2020-08-23 16:35:32 +00:00