Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce067913 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie
Browse files

drm/radeon: check kmalloc() for failures



We can just return -ENOMEM here if the allocation fails.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent bffd9de0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2008,6 +2008,8 @@ int r100_cs_parse(struct radeon_cs_parser *p)
	int r;

	track = kzalloc(sizeof(*track), GFP_KERNEL);
	if (!track)
		return -ENOMEM;
	r100_cs_track_clear(p->rdev, track);
	p->track = track;
	do {