Yi Yang 4ef41a7f33 tty: vcc: Add check for kstrdup() in vcc_probe()
[ Upstream commit d81ffb87aaa75f842cd7aa57091810353755b3e6 ]

Add check for the return value of kstrdup() and return the error, if it
fails in order to avoid NULL pointer dereference.

Signed-off-by: Yi Yang <yiyang13@huawei.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20230904035220.48164-1-yiyang13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-28 16:54:52 +00:00
..
2023-01-18 11:44:59 +01:00
2023-05-17 11:48:09 +02:00
2023-05-17 11:48:08 +02:00
2023-05-17 11:48:08 +02:00
2023-05-17 11:48:08 +02:00
2023-05-17 11:48:08 +02:00