Skip to content
Commit b8b1d75a authored by Vincent Geneves's avatar Vincent Geneves Committed by Carles Cufí
Browse files

drivers: i2c_ll_stm32_v2: Test slave_cfg pointer before using it



Since the introduction of the second slave address support, slave_cfg
pointer may be NULL when entering slave event function.
It happens when both targets are registered and then the first one is
unregsitered.

Test the pointer vs NULL before using it.

Signed-off-by: default avatarVincent Geneves <vgeneves@kalray.eu>
parent ecc3315c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment