Bluetooth: SMP: Fix variable dereferenced before check 'conn'
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 29 Mar 2021 17:27:04 +0000 (10:27 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Apr 2021 09:09:12 +0000 (11:09 +0200)
commit0ae8ef674eb391d5a832967eb03cfe06904b31d0
treea22eaa26e06ae63249c6f11140f875ff650c98d1
parent06752d1678b49ac471f11950ebd6d29541828bba
Bluetooth: SMP: Fix variable dereferenced before check 'conn'

This fixes kbuild findings:

smatch warnings:
net/bluetooth/smp.c:1633 smp_user_confirm_reply() warn: variable
dereferenced before check 'conn' (see line 1631)

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/smp.c