Unverified Commit 80215d85 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14715 media: atomisp: Add check for rgby_data memory allocation failure

parents 3dbfb878 6d519c6a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4144,6 +4144,8 @@ ia_css_3a_statistics_allocate(const struct ia_css_3a_grid_info *grid)
		goto err;
	/* No weighted histogram, no structure, treat the histogram data as a byte dump in a byte array */
	me->rgby_data = kvmalloc(sizeof_hmem(HMEM0_ID), GFP_KERNEL);
	if (!me->rgby_data)
		goto err;

	IA_CSS_LEAVE("return=%p", me);
	return me;