diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-03-29 09:07:18 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2021-03-30 13:37:32 +0300 |
commit | bec4d7c93afc07dd0454ae41c559513f858cfb83 (patch) | |
tree | b206c281fd199c20afd9c0e9ed2aa3ab5f0e7af7 /fs/xfs | |
parent | a5e13c6df0e41702d2b2c77c8ad41677ebb065b3 (diff) |
thunderbolt: Fix a leak in tb_retimer_add()
After the device_register() succeeds, then the correct way to clean up
is to call device_unregister(). The unregister calls both device_del()
and device_put(). Since this code was only device_del() it results in
a memory leak.
Fixes: dacb12877d92 ("thunderbolt: Add support for on-board retimers")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'fs/xfs')
0 files changed, 0 insertions, 0 deletions