Skip to content
Snippets Groups Projects
Commit c9649b5f authored by Sebastien Lorquet's avatar Sebastien Lorquet Committed by Gregory Nutt
Browse files

STMPE811: I found that, in stmpe811_instanciate(), when...

STMPE811: I found that, in stmpe811_instanciate(), when CONFIG_STMPE811_MULTIPLE is enabled, and the call to stmpe811_checkid() fails, then the linked device list is not restored to its previous state.  From Sebastien Lorquet.
parent 7ba6beb3
No related branches found
No related tags found
No related merge requests found
......@@ -339,6 +339,7 @@ STMPE811_HANDLE stmpe811_instantiate(FAR struct i2c_dev_s *dev,
if (ret < 0)
{
#ifdef CONFIG_STMPE811_MULTIPLE
g_stmpe811list = priv->flink;
kmm_free(priv);
#endif
return NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment