Skip to content

Commit 3dfe55d

Browse files
Colin Ian Kingholtmann
authored andcommitted
Bluetooth: kfree tmp rather than an alias to it
While the kfree of dhkey_a is of the same address of tmp, it probably is clearer and more human readable if tmp is kfree'd rather than dhkey_a. Detected by CoverityScan, CID#1448650 ("Free of address-of expression") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 198ec9a commit 3dfe55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/bluetooth/selftest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ static int __init test_ecdh_sample(const u8 priv_a[32], const u8 priv_b[32],
164164
ret = -EINVAL;
165165

166166
out:
167-
kfree(dhkey_a);
167+
kfree(tmp);
168168
return ret;
169169
}
170170

0 commit comments

Comments
 (0)