We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在函数rt_spi_sendrecv8中声明了value,后续调用函数rt_spi_send_then_recv(device, &data, 1, &value, 1)。
而在rt_spi_send_then_recv()时如果,在调用rt_mutex_take()后result的值不等于RT_EOK,则value将会在不被赋值的情况下返回,进而导致value在未被赋值的情况下返回,可能导致空指针引用等错误。
The text was updated successfully, but these errors were encountered:
[spi] fix issue report RT-Thread#6008
e270d65
rt_spi_sendrecv8()存在可能未初始化值返回的情况
[spi] fix issue report #6008
4f1f856
No branches or pull requests
在函数rt_spi_sendrecv8中声明了value,后续调用函数rt_spi_send_then_recv(device, &data, 1, &value, 1)。
而在rt_spi_send_then_recv()时如果,在调用rt_mutex_take()后result的值不等于RT_EOK,则value将会在不被赋值的情况下返回,进而导致value在未被赋值的情况下返回,可能导致空指针引用等错误。
The text was updated successfully, but these errors were encountered: