linux/drivers/hwtracing/stm
Johan Hovold a0ebf519b8 stm class: Fix device leak in open error path
Make sure to drop the reference taken by class_find_device() also on
allocation errors in open().

Signed-off-by: Johan Hovold <johan@kernel.org>
Fixes: 7bd1d4093c ("stm class: Introduce an abstraction for...")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
2016-11-18 16:54:39 +02:00
..
console.c
core.c stm class: Fix device leak in open error path 2016-11-18 16:54:39 +02:00
dummy_stm.c stm class: dummy_stm: Make nr_dummies parameter read-only 2016-04-08 16:11:50 +03:00
heartbeat.c stm class: stm_heartbeat: Make nr_devs parameter read-only 2016-04-08 16:11:51 +03:00
Kconfig stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
Makefile stm class: Add heartbeat stm source device 2016-02-20 14:09:14 -08:00
policy.c stm class: Remove unnecessary pointer increment 2016-04-08 16:11:54 +03:00
stm.h stm class: Guard output assignment against concurrency 2016-02-20 14:09:14 -08:00