Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a0ebf519 authored by Johan Hovold's avatar Johan Hovold Committed by Alexander Shishkin
Browse files

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: default avatarJohan Hovold <johan@kernel.org>
Fixes: 7bd1d409 ("stm class: Introduce an abstraction for...")
Cc: stable@vger.kernel.org # v4.6+
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
parent a25f0944
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment