drivers: gsm_ppp: Fix null pointer dereference in log message
Log message references gsm->context.data_rssi which is NULL when CONFIG_MODEM_SHELL=n. Use gsm->minfo.mdm_rssi which is internally used when accessing RSSI value. Signed-off-by: Marek Metelski <marek@metelski.dev>
This commit is contained in:
parent
12eda76939
commit
d046ea281c
1 changed files with 1 additions and 1 deletions
|
@ -830,7 +830,7 @@ attaching:
|
|||
#endif
|
||||
}
|
||||
|
||||
LOG_DBG("modem RSSI: %d, %s", *gsm->context.data_rssi, "enable PPP");
|
||||
LOG_DBG("modem RSSI: %d, %s", gsm->minfo.mdm_rssi, "enable PPP");
|
||||
|
||||
ret = modem_cmd_handler_setup_cmds_nolock(&gsm->context.iface,
|
||||
&gsm->context.cmd_handler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue