diff options
| author | 2025-05-08 11:44:34 +0300 | |
|---|---|---|
| committer | 2025-05-09 15:05:07 -0700 | |
| commit | 97c4e094a4b2edbb4fffeda718f8e806f825a18f (patch) | |
| tree | 00dc94c067418edfff80fce58eddb4e96d22a790 /include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com | |
| parent | net: mctp: Don't access ifa_index when missing (diff) | |
tests/ncdevmem: Fix double-free of queue array
netdev_bind_rx takes ownership of the queue array passed as parameter
and frees it, so a queue array buffer cannot be reused across multiple
netdev_bind_rx calls.
This commit fixes that by always passing in a newly created queue array
to all netdev_bind_rx calls in ncdevmem.
Fixes: 85585b4bc8d8 ("selftests: add ncdevmem, netcat for devmem TCP")
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Mina Almasry <almasrymina@google.com>
Link: https://patch.msgid.link/20250508084434.1933069-1-cratiu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
