diff --git a/mm/swapfile.c b/mm/swapfile.c index d483278ee35b1fe9f728ec93c867dcd7621fd4af..12251d386dc76b3ad8db17014086538f80ccf686 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -3290,7 +3290,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags) p->flags = 0; spin_unlock(&swap_lock); vfree(swap_map); - vfree(cluster_info); + kvfree(cluster_info); if (swap_file) { if (inode && S_ISREG(inode->i_mode)) { inode_unlock(inode);