diff options
Diffstat (limited to 'fs/xfs/xfs_error.c')
-rw-r--r-- | fs/xfs/xfs_error.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/xfs/xfs_error.c b/fs/xfs/xfs_error.c index 05e5365d3c3..7380a00644c 100644 --- a/fs/xfs/xfs_error.c +++ b/fs/xfs/xfs_error.c | |||
@@ -150,8 +150,7 @@ xfs_errortag_clearall(xfs_mount_t *mp, int loud) | |||
150 | xfs_etest[i]); | 150 | xfs_etest[i]); |
151 | xfs_etest[i] = 0; | 151 | xfs_etest[i] = 0; |
152 | xfs_etest_fsid[i] = 0LL; | 152 | xfs_etest_fsid[i] = 0LL; |
153 | kmem_free(xfs_etest_fsname[i], | 153 | kmem_free(xfs_etest_fsname[i]); |
154 | strlen(xfs_etest_fsname[i]) + 1); | ||
155 | xfs_etest_fsname[i] = NULL; | 154 | xfs_etest_fsname[i] = NULL; |
156 | } | 155 | } |
157 | } | 156 | } |
@@ -175,7 +174,7 @@ xfs_fs_vcmn_err(int level, xfs_mount_t *mp, char *fmt, va_list ap) | |||
175 | newfmt = kmem_alloc(len, KM_SLEEP); | 174 | newfmt = kmem_alloc(len, KM_SLEEP); |
176 | sprintf(newfmt, "Filesystem \"%s\": %s", mp->m_fsname, fmt); | 175 | sprintf(newfmt, "Filesystem \"%s\": %s", mp->m_fsname, fmt); |
177 | icmn_err(level, newfmt, ap); | 176 | icmn_err(level, newfmt, ap); |
178 | kmem_free(newfmt, len); | 177 | kmem_free(newfmt); |
179 | } else { | 178 | } else { |
180 | icmn_err(level, fmt, ap); | 179 | icmn_err(level, fmt, ap); |
181 | } | 180 | } |