Bluetooth: assign len after null check
authorWang Qing <wangqing@vivo.com>
Tue, 15 Feb 2022 02:01:56 +0000 (18:01 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 16 Feb 2022 10:27:23 +0000 (11:27 +0100)
commit8c7d84a33ff76f06413fac6a62b528b8eb073f07
tree25efc5683da735b18022ded0c503910de39b1d2f
parent8abc7824203217c23de0e513b2a9505d0f9a0603
Bluetooth: assign len after null check

len should be assigned after a null check

Signed-off-by: Wang Qing <wangqing@vivo.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt_util.c