diff options
author | Marco Pagani <marpagan@redhat.com> | 2024-07-25 15:50:31 +0300 |
---|---|---|
committer | Xu Yilun <yilun.xu@linux.intel.com> | 2024-08-14 18:51:04 +0300 |
commit | d783ed2f5fe7850fb7f6296ae267e2efcf877319 (patch) | |
tree | a0aa0bc96800828395a158f2c0312a9f2b4eef75 /net/ipv4/inet_hashtables.c | |
parent | 3c2c01849c01e7e3c99124a7fb7f238b7c9a2348 (diff) | |
download | linux-d783ed2f5fe7850fb7f6296ae267e2efcf877319.tar.xz |
fpga: Simplify and improve fpga region test using deferred actions
Use deferred actions to simplify the test suite and avoid potential memory
leaks when test cases fail. Remove unnecessary calls to
kunit_device_unregister() since kunit devices are tied to the test context
and released by a deferred action when the test is completed.
Other changes: fix a typo by changing the test suite name to fpga_region in
the kunit_suite struct.
Signed-off-by: Marco Pagani <marpagan@redhat.com>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20240725125031.308195-4-marpagan@redhat.com
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
Diffstat (limited to 'net/ipv4/inet_hashtables.c')
0 files changed, 0 insertions, 0 deletions