Commit ab3de2c7 authored by Aapo Vienamo's avatar Aapo Vienamo Committed by Mika Westerberg
Browse files

thunderbolt: Fix memory leaks in {port|retimer}_sb_regs_write()



Add missing free_page() call for the memory allocated by
validate_and_copy_from_user().

Fixes: 6d241fa0 ("thunderbolt: Add sideband register access to debugfs")
Signed-off-by: default avatarAapo Vienamo <aapo.vienamo@linux.intel.com>
Reviewed-by: default avatarPrzemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 8400291e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment