aboutsummaryrefslogtreecommitdiff
path: root/drivers/xen/dbgp.c
diff options
context:
space:
mode:
authorYi Yang2023-09-04 11:52:20 +0800
committerGreg Kroah-Hartman2023-11-28 17:07:01 +0000
commit7cebc86481bf16049e266f6774d90f2fd4f8d5d2 (patch)
tree148242f1ee965d5e1ac49a1e9842476d6a79e190 /drivers/xen/dbgp.c
parentd6957635de8fb51c14afa7bfab9cce4beeeea37f (diff)
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>
Diffstat (limited to 'drivers/xen/dbgp.c')
0 files changed, 0 insertions, 0 deletions