]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: mctp: Consistent peer address handling in ioctl tag allocation
authorJohn Wang <wangzq.jn@gmail.com>
Tue, 30 Jul 2024 08:46:35 +0000 (16:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 2 Aug 2024 01:04:12 +0000 (18:04 -0700)
commit5fcf0801ef5c8adb785520f16b4a1faa8c4ac147
tree81e307f39aa0f865c7fd1089f92895817b32b36f
parent5fa35bd39ce106889909444c937a10b2d3a79f08
net: mctp: Consistent peer address handling in ioctl tag allocation

When executing ioctl to allocate tags, if the peer address is 0,
mctp_alloc_local_tag now replaces it with 0xff. However, during tag
dropping, this replacement is not performed, potentially causing the key
not to be dropped as expected.

Signed-off-by: John Wang <wangzhiqiang02@ieisystem.com>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
Link: https://patch.msgid.link/20240730084636.184140-1-wangzhiqiang02@ieisystem.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mctp/af_mctp.c