summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2023-04-13 18:00:11 +0300
committerJakub Kicinski <kuba@kernel.org>2025-03-05 04:19:49 +0300
commit859abe3f92d7b3e47264e26f77e53dee651a24b7 (patch)
tree4f65b2d75f01c6f6748503c71ace885579b2f676 /include/linux/fpga/fpga-mgr.h
parentea4342739df3da79a2d1a994fb42971d14dd015b (diff)
downloadlinux-859abe3f92d7b3e47264e26f77e53dee651a24b7.tar.xz
tipc: Reduce scope for the variable “fdefq” in tipc_link_tnl_prepare()
The address of a data structure member was determined before a corresponding null pointer check in the implementation of the function “tipc_link_tnl_prepare”. Thus avoid the risk for undefined behaviour by moving the definition for the local variable “fdefq” into an if branch at the end. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Link: https://patch.msgid.link/08fe8fc3-19c3-4324-8719-0ee74b0f32c9@web.de Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions