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

Commit 54fcec39 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: Add NULL check before Pointer Dereference"

parents 7be8c9d2 e06b01af
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -166,11 +166,12 @@ static inline int _sspp_subblk_offset(struct sde_hw_pipe *ctx,
		u32 *idx)
{
	int rc = 0;
	const struct sde_sspp_sub_blks *sblk = ctx->cap->sblk;
	const struct sde_sspp_sub_blks *sblk;

	if (!ctx)
		return -EINVAL;

	sblk = ctx->cap->sblk;
	switch (s_id) {
	case SDE_SSPP_SRC:
		*idx = sblk->src_blk.base;