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

Commit ec612d9d authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "diag: Mark Buffer as NULL after freeing"

parents 4c180054 dd9b442e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1772,6 +1772,7 @@ static int __diag_mask_init(struct diag_mask_info *mask_info, int mask_len,
		mask_info->update_buf = kzalloc(update_buf_len, GFP_KERNEL);
		if (!mask_info->update_buf) {
			kfree(mask_info->ptr);
			mask_info->ptr = NULL;
			return -ENOMEM;
		}
		kmemleak_not_leak(mask_info->update_buf);