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

Commit eff0784a authored by Venkat Gopalakrishnan's avatar Venkat Gopalakrishnan
Browse files

scsi: ufs-debugfs: Fix hba access



Don't access hba when its NULL.

CRs-Fixed: 1001231
Change-Id: I0a4f0606a7c582de436071f33e0b9e49c771c63d
Signed-off-by: default avatarVenkat Gopalakrishnan <venkatg@codeaurora.org>
parent fe142d0b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1438,8 +1438,8 @@ void ufsdbg_add_debugfs(struct ufs_hba *hba)
	char root_name[sizeof("ufshcd00")];

	if (!hba) {
		dev_err(hba->dev, "%s: NULL hba, exiting", __func__);
		goto err_no_root;
		pr_err("%s: NULL hba, exiting", __func__);
		return;
	}

	snprintf(root_name, ARRAY_SIZE(root_name), "%s%d", UFSHCD,