aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2023-07-11 11:59:20 +0200
committerHans de Goede <[email protected]>2023-07-14 17:47:29 +0200
commitf2ae72541d52a0bf50366840fe2238aaf111f7ae (patch)
treed8bde225359287159461b2c4aeeef6e7c5c4640d /lib/test_fortify/write_overflow-memcpy.c
parent8b58f757cd1c712b5f081e4c26b13611298dfb07 (diff)
platform/x86/amd: pmc: Use release_mem_region() to undo request_mem_region_muxed()
Muxed (mem) regions will wait in request_mem_region_muxed() if the region is busy (in use by another consumer) during the call. In order to wake-up possibly waiting other consumers of the region, it must be released by a release_mem_region() call, which will actually wake up any waiters. release_mem_region() also frees the resource created by request_mem_region_muxed(), avoiding the need for the unmatched kfree(). Signed-off-by: Hans de Goede <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions