diff options
| author | Markus Elfring <[email protected]> | 2023-04-13 15:00:11 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-05 01:19:49 +0000 |
| commit | 859abe3f92d7b3e47264e26f77e53dee651a24b7 (patch) | |
| tree | 4f65b2d75f01c6f6748503c71ace885579b2f676 /lib/crypto/mpi/mpi-cmp.c | |
| parent | selftests: drv-net: use env.rpath in the HDS test (diff) | |
| download | kernel-859abe3f92d7b3e47264e26f77e53dee651a24b7.tar.gz kernel-859abe3f92d7b3e47264e26f77e53dee651a24b7.zip | |
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 <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
