9
0
Fork 0

stm32_i2c: Add missing NULL check. From Juha Niskanen

This commit is contained in:
Gregory Nutt 2015-03-12 07:53:41 -06:00
parent 10b63b1bd5
commit a68c8c07e7
1 changed files with 1 additions and 1 deletions

View File

@ -1399,7 +1399,7 @@ static int stm32_i2c_isr(struct stm32_i2c_priv_s *priv)
* - 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)
{