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

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

Merge "bcl: fix allocation for BCL attribute"

parents 7c08ab03 6975e2dd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ static int bcl_add_sysfs_nodes(enum bcl_param param_type)
		return ret;
	}
	bcl[param_type]->bcl_attr_gp.attrs = kzalloc(sizeof(struct attribute *)
		* BCL_PARAM_MAX_ATTR + 1, GFP_KERNEL);
		* (BCL_PARAM_MAX_ATTR + 1), GFP_KERNEL);
	if (!bcl[param_type]->bcl_attr_gp.attrs) {
		pr_err("Sysfs attribute create failed.\n");
		ret = -ENOMEM;