mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
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:
committed by
Gregory Nutt
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;
|
||||
|
||||
Reference in New Issue
Block a user