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

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

Merge "cnss2: Add NULL check for pci_priv in dev_boot debug handling"

parents 8f4c9de7 d83b852b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -147,6 +147,8 @@ static ssize_t cnss_dev_boot_debug_write(struct file *fp,
		return -ENODEV;

	pci_priv = plat_priv->bus_priv;
	if (!pci_priv)
		return -ENODEV;

	len = min(count, sizeof(buf) - 1);
	if (copy_from_user(buf, user_buf, len))