diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-08-11 19:33:04 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2017-08-11 21:19:46 +0200 |
commit | 3dfe55d9cae7413c1bd12cbc0f9145384f753014 (patch) | |
tree | 147878acfad5cc4d9158b4c84885fab063e6fc77 /net/bluetooth | |
parent | 198ec9ae052922d67491ab3cc3fd704580e0daf4 (diff) | |
download | linux-3dfe55d9cae7413c1bd12cbc0f9145384f753014.tar.gz linux-3dfe55d9cae7413c1bd12cbc0f9145384f753014.tar.bz2 linux-3dfe55d9cae7413c1bd12cbc0f9145384f753014.zip |
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 <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/selftest.c b/net/bluetooth/selftest.c index ee92c925ecc5..34a1227f4391 100644 --- a/net/bluetooth/selftest.c +++ b/net/bluetooth/selftest.c @@ -164,7 +164,7 @@ static int __init test_ecdh_sample(const u8 priv_a[32], const u8 priv_b[32], ret = -EINVAL; out: - kfree(dhkey_a); + kfree(tmp); return ret; } |