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>
This commit is contained in:
Lee Susman 2013-11-19 10:49:56 +02:00 committed by David Keitel
parent f97ac66e17
commit c9c15f80e8

View file

@ -238,7 +238,7 @@ static ssize_t ufsdbg_tag_stats_write(struct file *filp,
pr_debug("%s: Enabling & Resetting UFS tag statistics", pr_debug("%s: Enabling & Resetting UFS tag statistics",
__func__); __func__);
memset(ufs_stats->tag_stats, 0, 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); spin_unlock_irqrestore(hba->host->host_lock, flags);