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

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

Merge "msm: camera_v2: cci: check for NULL pointer"

parents 57387ee5 3161c2e1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -634,7 +634,11 @@ ERROR:
static int msm_cci_subdev_g_chip_ident(struct v4l2_subdev *sd,
			struct v4l2_dbg_chip_ident *chip)
{
	BUG_ON(!chip);
	if (!chip) {
		pr_err("%s:%d: NULL pointer supplied for chip ident\n",
			 __func__, __LINE__);
		return -EINVAL;
	}
	chip->ident = V4L2_IDENT_CCI;
	chip->revision = 0;
	return 0;