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

Commit 1f565d86 authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: fix a bug related to a null pointer access



In this change there is a fix of a possible NULL pointer access.

Change-Id: I4c6d4020d914a24b88153641db24519a2c36e4b0
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent de108b61
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -722,8 +722,8 @@ static const struct file_operations ufsdbg_power_mode_desc = {
void ufsdbg_add_debugfs(struct ufs_hba *hba)
{
	if (!hba) {
		dev_err(hba->dev, "%s: NULL hba, exiting", __func__);
		goto err_no_root;
		pr_err("%s: NULL hba, exiting\n", __func__);
		return;
	}

	hba->debugfs_files.debugfs_root = debugfs_create_dir("ufs", NULL);