On Thu, Apr 23, 2020 at 09:40:03PM +0100, Lee Jones wrote: > From: Joe Moriarty <joe.moriarty@xxxxxxxxxx> > > [ Upstream commit 22a07038c0eaf4d1315a493ce66dcd255accba19 ] > > The Parfait (version 2.1.0) static code analysis tool found the > following NULL pointer derefernce problem. > > - drivers/gpu/drm/drm_dp_mst_topology.c > The call to drm_dp_calculate_rad() in function drm_dp_port_setup_pdt() > could result in a NULL pointer being returned to port->mstb due to a > failure to allocate memory for port->mstb. > > Signed-off-by: Joe Moriarty <joe.moriarty@xxxxxxxxxx> > Reviewed-by: Steven Sistare <steven.sistare@xxxxxxxxxx> > Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxx> > Link: https://patchwork.freedesktop.org/patch/msgid/20180212195144.98323-3-joe.moriarty@xxxxxxxxxx > Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx> > --- > drivers/gpu/drm/drm_dp_mst_topology.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) Already in the 4.4.220 release.