commit | cbe4a61d1ddc4790d950ca8c33ef79ee68ef5e2b | [log] [tgz] |
---|---|---|
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | Fri Mar 04 16:36:10 2016 +0200 |
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | Fri Apr 08 16:11:52 2016 +0300 |
tree | 87c9756404d8959ec2b19ad6b974f48f14bd1c2a | |
parent | 8fa11d1c1322f3de40a0e3f3f3e57436a204fcc4 [diff] |
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: Alan Cox <alan.cox@intel.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Laurent Fert <laurent.fert@intel.com>