bluetooth: avdtp: fix the pointer check should check codec_info_element not *codec_info_element. Signed-off-by: Mark Wang <yichang.wang@nxp.com>
diff --git a/subsys/bluetooth/host/classic/avdtp.c b/subsys/bluetooth/host/classic/avdtp.c index dd6f0ec..f1913cf 100644 --- a/subsys/bluetooth/host/classic/avdtp.c +++ b/subsys/bluetooth/host/classic/avdtp.c
@@ -2371,7 +2371,7 @@ return -EINVAL; } - if (codec_type == NULL || *codec_info_element == NULL || codec_info_element_len == NULL) { + if (codec_type == NULL || codec_info_element == NULL || codec_info_element_len == NULL) { LOG_DBG("Error: parameters not valid"); return -EINVAL; }