diff options
Diffstat (limited to 'module/zfs')
-rw-r--r-- | module/zfs/zvol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index 7395dcb8d..7ca18e138 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -2267,7 +2267,7 @@ zvol_rename_minors_impl(const char *oldname, const char *newname) zv->zv_name[oldnamelen], zv->zv_name + oldnamelen + 1); zvol_rename_minor(zv, name); - kmem_free(name, strlen(name + 1)); + strfree(name); } mutex_exit(&zv->zv_state_lock); |