Skip to content
Commit cbe4a61d authored by Alexander Shishkin's avatar Alexander Shishkin
Browse files

stm class: Do not leak the chrdev in error path



Currently, the error path of stm_register_device() forgets to unregister
the chrdev. Fix this.

Reported-by: default avatarAlan Cox <alan.cox@intel.com>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: default avatarLaurent Fert <laurent.fert@intel.com>
parent 8fa11d1c
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