Commit 13a66919 authored by Chiara Meiohas's avatar Chiara Meiohas Committed by Leon Romanovsky
Browse files

RDMA/nldev: Set error code in rdma_nl_notify_event

parent 7179fe00
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2833,8 +2833,8 @@ int rdma_nl_notify_event(struct ib_device *device, u32 port_num,
			  enum rdma_nl_notify_event_type type)
{
	struct sk_buff *skb;
	int ret = -EMSGSIZE;
	struct net *net;
	int ret = 0;
	void *nlh;

	net = read_pnet(&device->coredev.rdma_net);