Re: [PATCH] mdesc: fix a missing-check bug in get_vdev_port_node_info()

From: David Miller
Date: Mon Jun 03 2019 - 01:20:18 EST


From: Gen Zhang <blackgod016574@xxxxxxxxx>
Date: Fri, 31 May 2019 09:24:18 +0800

> 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@xxxxxxxxx>

Applied, thanks.