diff options
| author | Lee Susman <lsusman@codeaurora.org> | 2013-11-19 10:49:56 +0200 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 10:56:08 -0700 |
| commit | c9c15f80e8771c22d4aa162e5c65002cb7fac3d1 (patch) | |
| tree | ef4a586f856f8f93d10e86665c2b07b951fefbc1 | |
| parent | f97ac66e17d535aaded4967b61dce0f00738d84b (diff) | |
scsi: ufs: fix debugfs tag stats resetting
When attempting to clear ufs tag stats, memset 0 is called with size
of multiples of unsigned int.
This is wrong since each cell in the stats array is of type (u64).
Fix the memset to sizeof(*tag_stats).
Change-Id: Iaeb70616a2160ee9cba4605e7251dc45868d1951
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
| -rw-r--r-- | drivers/scsi/ufs/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/debugfs.c b/drivers/scsi/ufs/debugfs.c index 5028b560509f..95c1ccb0e310 100644 --- a/drivers/scsi/ufs/debugfs.c +++ b/drivers/scsi/ufs/debugfs.c @@ -238,7 +238,7 @@ static ssize_t ufsdbg_tag_stats_write(struct file *filp, pr_debug("%s: Enabling & Resetting UFS tag statistics", __func__); memset(ufs_stats->tag_stats, 0, - sizeof(unsigned int) * hba->nutrs); + sizeof(*ufs_stats->tag_stats) * hba->nutrs); } spin_unlock_irqrestore(hba->host->host_lock, flags); |
