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: 7bd1d4093c2f ("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
..
2016-11-11 23:23:02 +01:00
2016-11-13 10:22:07 -08:00
2016-11-13 10:24:08 -08:00
2016-10-06 17:13:54 -07:00
2016-10-21 21:40:29 +02:00
2016-09-27 12:33:47 +02:00
2016-11-13 10:02:22 -08:00
2016-10-07 21:23:40 -07:00
2016-10-07 08:35:35 -07:00
2016-11-05 10:52:29 -07:00
2016-10-07 21:23:40 -07:00
2016-11-11 16:38:26 -08:00
2016-11-11 17:02:01 -08:00
2016-10-06 17:03:49 -07:00
2016-10-14 13:13:44 -07:00
2016-11-13 10:07:08 -08:00
2016-10-14 11:07:42 -07:00
2016-11-13 10:13:33 -08:00
2016-11-10 13:12:59 +01:00
2016-11-01 09:04:04 -06:00
2016-10-19 08:39:47 -07:00
2016-10-24 19:52:24 -07:00