diff options
| author | Haoxiang Li <[email protected]> | 2025-02-27 04:11:31 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-03-06 05:36:19 +0000 |
| commit | e842f9a1edf306bf36fe2a4d847a0b0d458770de (patch) | |
| tree | 7868fa924473343624a31e178df3d937e95899ba /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
| parent | rapidio: fix an API misues when rio_add_net() fails (diff) | |
| download | kernel-e842f9a1edf306bf36fe2a4d847a0b0d458770de.tar.gz kernel-e842f9a1edf306bf36fe2a4d847a0b0d458770de.zip | |
rapidio: add check for rio_add_net() in rio_scan_alloc_net()
The return value of rio_add_net() should be checked. If it fails,
put_device() should be called to free the memory and give up the reference
initialized in rio_add_net().
Link: https://lkml.kernel.org/r/[email protected]
Fixes: e6b585ca6e81 ("rapidio: move net allocation into core code")
Signed-off-by: Yang Yingliang <[email protected]>
Signed-off-by: Haoxiang Li <[email protected]>
Cc: Alexandre Bounine <[email protected]>
Cc: Matt Porter <[email protected]>
Cc: Dan Carpenter <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions
