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.

This commit is contained in:
Sebastien Lorquet 2015-07-02 08:19:29 -06:00 committed by Gregory Nutt
parent 7ba6beb38d
commit c9649b5f04
1 changed files with 1 additions and 0 deletions

View File

@ -339,6 +339,7 @@ STMPE811_HANDLE stmpe811_instantiate(FAR struct i2c_dev_s *dev,
if (ret < 0) if (ret < 0)
{ {
#ifdef CONFIG_STMPE811_MULTIPLE #ifdef CONFIG_STMPE811_MULTIPLE
g_stmpe811list = priv->flink;
kmm_free(priv); kmm_free(priv);
#endif #endif
return NULL; return NULL;