Commit 09b2286a authored by Uladzislau Rezki (Sony)'s avatar Uladzislau Rezki (Sony) Committed by Joel Fernandes (Google)
Browse files

misc: vmw_vmci: Rename kvfree_rcu() to kvfree_rcu_mightsleep()



The kvfree_rcu() macro's single-argument form is deprecated.  Therefore
switch to the new kvfree_rcu_mightsleep() variant. The goal is to
avoid accidental use of the single-argument forms, which can introduce
functionality bugs in atomic contexts and latency bugs in non-atomic
contexts.

Cc: Bryan Tan <bryantan@vmware.com>
Cc: Vishnu Dasa <vdasa@vmware.com>
Reviewed-by: default avatarVishnu Dasa <vdasa@vmware.com>
Acked-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarUladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
Signed-off-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
parent a77b2109
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -687,7 +687,7 @@ int vmci_ctx_remove_notification(u32 context_id, u32 remote_cid)
	spin_unlock(&context->lock);

	if (notifier)
		kvfree_rcu(notifier);
		kvfree_rcu_mightsleep(notifier);

	vmci_ctx_put(context);

+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ int vmci_event_unsubscribe(u32 sub_id)
	if (!s)
		return VMCI_ERROR_NOT_FOUND;

	kvfree_rcu(s);
	kvfree_rcu_mightsleep(s);

	return VMCI_SUCCESS;
}