mirror of
https://github.com/openharmony/kernel_linux_common_modules.git
synced 2026-08-27 19:49:56 -04:00
c786a426526de7a08ee30e9527efda72da16d0f4
1. bt_io_file_write function call copy_from_user branch failure need to release skb. 2. The branch that bt_io_file_read fails to call copy_to_user needs to release skb, because skb has been unchained from ring buf. 3. The bt_cmd_peek_packet function only obtains the skb data length. After put_user fails, the skb does not need to be released. 4. The bt_cmd_create_virnet function bt_get_unused_id may return an invalid id, and add the if judgment that the id is less than 0. 5. The branch of bt_cmd_create_virnet function copy_to_user that fails needs to release bt_table_remove_device. 6. bt_table_add_device and bt_table_remove_device functions to tbl->num variable ++ and -- operation to increase the validity judgment, avoid flipping. 7. __bt_ring_create function if (unlikely(size < 0)) branch has memory leaks, modified to determine the validity of the input parameter, and then apply for memory. 8. Both bt_ring_is_empty and bt_ring_is_full return true for invalid branches. 9. bt_virnet_produce_data adds a memory barrier before and after calling bt_ring_produce, and bt_ring_produce already has a memory barrier. Delete the redundant memory barrier. 10. The vnet->tx_queue variable is a redundant operation and has no practical effect. Delete all codes corresponding to the variable to improve the efficiency of receiving and sending packets on the btdev virtual device. bt_virnet_create deletes init_waitqueue_head(&vnet->tx_queue); bt_io_file_poll deletes poll_wait(filp, &vnet->tx_queue, wait); 11. Change the global variable name to g_xxx 12. atomic operation process xx_open_limit variable value changes add annotation 13. debug rectification, the normal path is closed by default (shell can be opened), and the abnormal path is opened by default. At the same time, key information such as btdev interface name printing and data length are added to the interface open, delete, and packet sending functions. Signed-off-by: yangyanjun <yangyanjun@huawei.com>
kernel_linux_common_modules
Description
{When you're done, you can delete the content in this README and update the file with details for others getting started with your repository}
Software Architecture
Software architecture description
Installation
- xxxx
- xxxx
- xxxx
Instructions
- xxxx
- xxxx
- xxxx
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
Gitee Feature
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- Gitee blog blog.gitee.com
- Explore open source project https://gitee.com/explore
- The most valuable open source project GVP
- The manual of Gitee https://gitee.com/help
- The most popular members https://gitee.com/gitee-stars/
Description
该仓为Linux内核通用模块仓。通用内核模块可在OpenHarmony支持的任何linux内核版本上使用。新增模块需要通过内核SIG会议评审,模块规则及评审流程详见本仓README。
Languages
C
79.4%
Shell
14.8%
C++
2.8%
Makefile
1.2%
Lua
1.1%
Other
0.6%