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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment