From c9649b5f040ac2c984faea03af39cd8d276b816e Mon Sep 17 00:00:00 2001 From: Sebastien Lorquet Date: Thu, 2 Jul 2015 08:19:29 -0600 Subject: [PATCH] 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. --- drivers/input/stmpe811_base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/stmpe811_base.c b/drivers/input/stmpe811_base.c index 0bdbbf23c8..f2bdf8bca8 100644 --- a/drivers/input/stmpe811_base.c +++ b/drivers/input/stmpe811_base.c @@ -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;