<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/usb/usbdevice, branch v5.1.x</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/usb/usbdevice?h=v5.1.x</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/usb/usbdevice?h=v5.1.x'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2024-03-19T12:13:00Z</updated>
<entry>
<title>[fix] NXP bsp for RT-Thread 5.1.0 fixed up.</title>
<updated>2024-03-19T12:13:00Z</updated>
<author>
<name>StackYuan</name>
<email>yuanjyjyj@outlook.com</email>
</author>
<published>2024-03-19T10:41:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=a582c0cc3133e6f317d93f921c7178ccf5ea3e95'/>
<id>urn:sha1:a582c0cc3133e6f317d93f921c7178ccf5ea3e95</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix(serial_v2): tx_fifo-&gt;rb.buffer_ptr not init when RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING</title>
<updated>2024-02-21T05:29:53Z</updated>
<author>
<name>LaterComer</name>
<email>12015333+Later-Comer@users.noreply.github.com</email>
</author>
<published>2024-02-21T05:29:53Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=82bb104f650011684515508b846a7a7f9c7b229d'/>
<id>urn:sha1:82bb104f650011684515508b846a7a7f9c7b229d</id>
<content type='text'>
为什么提交这份PR (why to submit this PR)
serial_v2驱动框架，rt_serial_tx_enable()函数，在 DMA阻塞发送(RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING) 的时候，使用rt_malloc分配了tx_fifo内存，但是并未对tx_fifo-&gt;rb.buffer_ptr指针进行初始化（rt_malloc不会自动初始化内存），因此可能导致buffer_ptr是一个随机指针。但是rt_serail_write()函数需要根据tx_fifo-&gt;rb.buffer_ptr是否为RT_NULL来判断是调用_serial_fifo_tx_blocking_nbuf()还是_serial_fifo_tx_blocking_buf()。

由于tx_fifo-&gt;rb.buffer_ptr可能是一个随机值（不一定为RT_NULL=0），导致RT_DEVICE_FLAG_DMA_TX and RT_SERIAL_TX_BLOCKING模式下调用了_serial_fifo_tx_blocking_buf()，但是rb没有真正开辟内存空间，导致内存异常

你的解决方案是什么 (what is your solution)
rt_serial_tx_enable()，在DMA阻塞发送分支下，对tx_fifo-&gt;rb.buffer_ptr进行初始化，赋值为RT_NULL。</content>
</entry>
<entry>
<title>[kernel][dm]适配新的设备驱动模型 (#8075)</title>
<updated>2023-10-18T12:50:30Z</updated>
<author>
<name>zms123456</name>
<email>85141075+zmshahaha@users.noreply.github.com</email>
</author>
<published>2023-10-18T12:50:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d01dd05a0cd2107d85e26a445a43957880fd1978'/>
<id>urn:sha1:d01dd05a0cd2107d85e26a445a43957880fd1978</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[include][dbg]update: no longer use RT_DEBUG_LOG in rtdebug.h (#7750)</title>
<updated>2023-06-29T15:24:25Z</updated>
<author>
<name>Shicheng Chu</name>
<email>1468559561@qq.com</email>
</author>
<published>2023-06-29T15:24:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e2c031643c8dec7c9ea1581216e19bf19c8f73f0'/>
<id>urn:sha1:e2c031643c8dec7c9ea1581216e19bf19c8f73f0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[Kernel] message 可以返回消息的实际大小 (#7709)</title>
<updated>2023-06-21T10:22:42Z</updated>
<author>
<name>zhkag</name>
<email>zhkag@foxmail.com</email>
</author>
<published>2023-06-21T10:22:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=33f550cb65c950068ff04c331daeeda3547d2e50'/>
<id>urn:sha1:33f550cb65c950068ff04c331daeeda3547d2e50</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[components][rndis.c] add safety checking after allocating memory</title>
<updated>2023-05-12T05:37:42Z</updated>
<author>
<name>hust202013232</name>
<email>u202013232@hust.edu.cn</email>
</author>
<published>2023-05-12T05:37:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9dd0d4125190907332c0510a1449c3cfdb0104bf'/>
<id>urn:sha1:9dd0d4125190907332c0510a1449c3cfdb0104bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[components][rndis.c] add a checkout procedure after malloc to make sure allocating successfully (#7460)</title>
<updated>2023-05-09T02:02:11Z</updated>
<author>
<name>kkangdom</name>
<email>U202012151@hust.edu.cn</email>
</author>
<published>2023-05-09T02:02:11Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=3cf07f1a62088245f15ee41b2e0a1df3711c1507'/>
<id>urn:sha1:3cf07f1a62088245f15ee41b2e0a1df3711c1507</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[winusb.c] add checking after allocating memory for variable winusb_device to make sure allocae is successful</title>
<updated>2023-04-28T13:59:42Z</updated>
<author>
<name>ourea1429</name>
<email>131341319+ourea1429@users.noreply.github.com</email>
</author>
<published>2023-04-28T13:59:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=085ded8eef541ee8b347468c42c359d580fcd127'/>
<id>urn:sha1:085ded8eef541ee8b347468c42c359d580fcd127</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[HUST CSE] Fix many abnormal symbols in annotations and format code</title>
<updated>2023-04-18T02:26:23Z</updated>
<author>
<name>7YZ7</name>
<email>82019212+7YZ7@users.noreply.github.com</email>
</author>
<published>2023-04-18T02:26:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=501b22aabede2d4e179bfc47f3b75522e5933da4'/>
<id>urn:sha1:501b22aabede2d4e179bfc47f3b75522e5933da4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[errno code][-RT_ERROR] fix that use RT_ERROR without -</title>
<updated>2023-03-20T04:06:16Z</updated>
<author>
<name>Meco Man</name>
<email>920369182@qq.com</email>
</author>
<published>2023-03-17T04:12:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=0f461e870c481a24ce2690cca1949706bb80f9e7'/>
<id>urn:sha1:0f461e870c481a24ce2690cca1949706bb80f9e7</id>
<content type='text'>
</content>
</entry>
</feed>
