aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorPhilipp Puschmann <philipp.puschmann@emlix.com>2019-02-27 16:17:33 +0100
committerMark Brown <broonie@kernel.org>2019-02-28 14:15:57 +0000
commit82ad759143ed77673db0d93d53c1cde7b99917ee (patch)
treef02f0663ff9b41008e22cf6bfb176723a87c4bc3 /tools/perf/scripts/python/exported-sql-viewer.py
parent8af6c521cc236534093f9e744cfa004314bfe5ae (diff)
downloadlinux-82ad759143ed77673db0d93d53c1cde7b99917ee.tar.gz
linux-82ad759143ed77673db0d93d53c1cde7b99917ee.tar.bz2
linux-82ad759143ed77673db0d93d53c1cde7b99917ee.zip
ASoC: tlv320aic3x: fix reset gpio reference counting
This patch fixes a bug that prevents freeing the reset gpio on unloading the module. aic3x_i2c_probe is called when loading the module and it calls list_add with a probably uninitialized list entry aic3x->list (next = prev = NULL)). So even if list_del is called it does nothing and in the end the gpio_reset is not freed. Then a repeated module probing fails silently because gpio_request fails. When moving INIT_LIST_HEAD to aic3x_i2c_probe we also have to move list_del to aic3x_i2c_remove because aic3x_remove may be called multiple times without aic3x_i2c_remove being called which leads to a NULL pointer dereference. Signed-off-by: Philipp Puschmann <philipp.puschmann@emlix.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions