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

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

Merge "[media] xc2028: avoid use after free"

parents 065421c6 694339fd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1403,11 +1403,12 @@ static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg)
	 * in order to avoid troubles during device release.
	 */
	kfree(priv->ctrl.fname);
	priv->ctrl.fname = NULL;
	memcpy(&priv->ctrl, p, sizeof(priv->ctrl));
	if (p->fname) {
		priv->ctrl.fname = kstrdup(p->fname, GFP_KERNEL);
		if (priv->ctrl.fname == NULL)
			rc = -ENOMEM;
			return -ENOMEM;
	}

	/*