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:
parent
7ba6beb38d
commit
c9649b5f04
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue