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

Commit a9b90434 authored by Protik Biswas's avatar Protik Biswas Committed by Gerrit - the friendly Code Review server
Browse files

bgrsb: fix for RSB enable disable command



Handles user-space command before
checking for BG ssr.

Change-Id: I3a92b4fa6e240ce720b95b80da3e23d2ac4a7846
Signed-off-by: default avatarProtik Biswas <protbisw@codeaurora.org>
parent 8f047d48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -962,13 +962,13 @@ static int store_enable(struct device *pdev, struct device_attribute *attr,
		return count;
	}

	rc = split_bg_work(dev, arr);
	if (!dev->is_cnfgrd) {
		bgrsb_handle_cmd_in_ssr(dev, arr);
		kfree(arr);
		return -ENOMEDIUM;
	}

	rc = split_bg_work(dev, arr);
	if (rc != 0)
		pr_err("Not able to process request\n");
	kfree(arr);