Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83515cd5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: rmnet_data: Fix memory corruption in gro tracepoint"

parents 4af2bd61 117a9331
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -215,8 +215,7 @@ static rx_handler_result_t __rmnet_deliver_skb(struct sk_buff *skb,
				napi = get_current_napi_context();
				if (napi != NULL) {
					gro_res = napi_gro_receive(napi, skb);
					trace_rmnet_gro_downlink(skb->dev,
						gro_res);
					trace_rmnet_gro_downlink(gro_res);
				} else {
					WARN_ONCE(1, "current napi is NULL\n");
					netif_receive_skb(skb);
+3 −6
Original line number Diff line number Diff line
@@ -308,22 +308,19 @@ DEFINE_EVENT(rmnet_physdev_action_template, rmnet_unassociate,

TRACE_EVENT(rmnet_gro_downlink,

	TP_PROTO(struct net_device *dev, gro_result_t gro_res),
	TP_PROTO(gro_result_t gro_res),

	TP_ARGS(dev, gro_res),
	TP_ARGS(gro_res),

	TP_STRUCT__entry(
		__string(name, dev->name)
		__field(gro_result_t, res)
	),

	TP_fast_assign(
		__assign_str(name, dev->name);
		__entry->res = gro_res;
	),

	TP_printk("GRO on dev=%s, res: %d",
		__get_str(name), __entry->res)
	TP_printk("GRO res: %d", __entry->res)
)

#endif /* _RMNET_DATA_TRACE_H_ */