diff options
author | Chunwei Chen <[email protected]> | 2016-12-14 09:41:39 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-12-14 09:41:39 -0800 |
commit | f2d8bdc62ef779a632615b8a4be90009517f457a (patch) | |
tree | 632f5222e76894bf1f20701a5bce99dbda70bccb /module | |
parent | db2c364ffde84125de5aceb0c3eb6062abb0199c (diff) |
Add ida_destroy in zvol_fini to fix memleak
User of ida needs to call ida_destroy after using it. Otherwise
ida->free_bitmap and/or other stuff may leak.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #5484
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/zvol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/module/zfs/zvol.c b/module/zfs/zvol.c index 2c99b73c2..7674b3148 100644 --- a/module/zfs/zvol.c +++ b/module/zfs/zvol.c @@ -2085,6 +2085,8 @@ zvol_fini(void) list_destroy(&zvol_state_list); mutex_destroy(&zvol_state_lock); + + ida_destroy(&zvol_ida); } /* BEGIN CSTYLED */ |