commit | 7b460a9bb13db3f442f153c2ab8a9ff8520c368c | [log] [tgz] |
---|---|---|
author | Gen Zhang <blackgod016574@gmail.com> | Fri May 31 09:24:18 2019 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Jun 25 11:35:57 2019 +0800 |
tree | 2db7554e865799641034e78a2b4332249ef6060e | |
parent | 6bf97a6cb6ce3903ab50f072ff3552a80a5b32da [diff] |
mdesc: fix a missing-check bug in get_vdev_port_node_info() [ Upstream commit 80caf43549e7e41a695c6d1e11066286538b336f ] In get_vdev_port_node_info(), 'node_info->vdev_port.name' is allcoated by kstrdup_const(), and it returns NULL when fails. So 'node_info->vdev_port.name' should be checked. Signed-off-by: Gen Zhang <blackgod016574@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>