File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,7 @@ static enum hrtimer_restart bcm_tx_timeout_handler(struct hrtimer *hrtimer)
406
406
if (!op -> count && (op -> flags & TX_COUNTEVT )) {
407
407
408
408
/* create notification to user */
409
+ memset (& msg_head , 0 , sizeof (msg_head ));
409
410
msg_head .opcode = TX_EXPIRED ;
410
411
msg_head .flags = op -> flags ;
411
412
msg_head .count = op -> count ;
@@ -443,6 +444,7 @@ static void bcm_rx_changed(struct bcm_op *op, struct canfd_frame *data)
443
444
/* this element is not throttled anymore */
444
445
data -> flags &= (BCM_CAN_FLAGS_MASK |RX_RECV );
445
446
447
+ memset (& head , 0 , sizeof (head ));
446
448
head .opcode = RX_CHANGED ;
447
449
head .flags = op -> flags ;
448
450
head .count = op -> count ;
@@ -564,6 +566,7 @@ static enum hrtimer_restart bcm_rx_timeout_handler(struct hrtimer *hrtimer)
564
566
}
565
567
566
568
/* create notification to user */
569
+ memset (& msg_head , 0 , sizeof (msg_head ));
567
570
msg_head .opcode = RX_TIMEOUT ;
568
571
msg_head .flags = op -> flags ;
569
572
msg_head .count = op -> count ;
You can’t perform that action at this time.
0 commit comments