commit | 2d2914349286d29e57b6536c01251c1332a8e784 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Fri Nov 18 14:17:31 2016 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Jan 09 08:32:21 2017 +0100 |
tree | 9de45cd8e42589a3589e484c103812d0906bad60 | |
parent | fbb28e76454fd7b9c59e5e35702982ee6d0dae8b [diff] |
stm class: Fix device leak in open error path commit a0ebf519b8a2666438d999c62995618c710573e5 upstream. 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...") Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>