aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2024-07-31 17:20:50 +0200
committerLuiz Augusto von Dentz <[email protected]>2024-08-07 16:35:53 -0400
commite1d28be268cfe978e19a18a3a9b37a4a7d37745e (patch)
tree139cd21f40aa8416d8492e4f22ff06b6eafcb441 /lib/test_fortify/write_overflow-strncpy-src.c
parentf3660957303b822e5dd6e10fe9e1e19afc6d33de (diff)
Bluetooth: hci_qca: fix a NULL-pointer derefence at shutdown
Unlike qca_regulator_init(), qca_power_shutdown() may be called for QCA_ROME which does not have qcadev->bt_power assigned. Add a NULL-pointer check before dereferencing the struct qca_power pointer. Fixes: eba1718717b0 ("Bluetooth: hci_qca: make pwrseq calls the default if available") Reported-by: Dmitry Baryshkov <[email protected]> Closes: https://lore.kernel.org/linux-bluetooth/su3wp6s44hrxf4ijvsdfzbvv4unu4ycb7kkvwbx6ltdafkldir@4g7ydqm2ap5j/ Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions