summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/drivers/can/can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/drivers/can/can.c b/components/drivers/can/can.c
index 3781a24009..d1cc21dd3f 100644
--- a/components/drivers/can/can.c
+++ b/components/drivers/can/can.c
@@ -433,7 +433,7 @@ static rt_err_t rt_can_close(struct rt_device *dev)
{
struct rt_can_tx_fifo *tx_fifo;
- tx_fifo = (struct rt_can_tx_fifo *)can->can_rx;
+ tx_fifo = (struct rt_can_tx_fifo *)can->can_tx;
RT_ASSERT(tx_fifo != RT_NULL);
rt_free(tx_fifo);