Bluetooth: fix passkey uninitialized when used
authorHoward Chung <howardchung@google.com>
Thu, 20 Feb 2020 03:17:29 +0000 (11:17 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Feb 2020 19:35:46 +0000 (20:35 +0100)
commiteed467b517e8c6987e3f227758ff3e67c889e17b
treef31a7c1967294e780d403049f60ab44a590deb02
parent1c22d3cda8afa3fffa3875cbfa5c82e818a3f780
Bluetooth: fix passkey uninitialized when used

This patch fix the issue: warning:variable 'passkey' is uninitialized
when used here

Link: https://groups.google.com/forum/#!topic/clang-built-linux/kyRKCjRsGoU
Fixes: cee5f20fece3 ("Bluetooth: secure bluetooth stack from bluedump attack")
Reported-by: kbuild test robot <lkp@intel.com>
Suggested-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Howard Chung <howardchung@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c