mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
stm32_i2c: Add missing NULL check. From Juha Niskanen
This commit is contained in:
@@ -1399,7 +1399,7 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s *priv)
|
|||||||
* - or we close down by sending the stop bit
|
* - or we close down by sending the stop bit
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (priv->msgc > 0)
|
if (priv->msgc > 0 && priv->msgv != NULL)
|
||||||
{
|
{
|
||||||
if (priv->msgv->flags & I2C_M_NORESTART)
|
if (priv->msgv->flags & I2C_M_NORESTART)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user