mirror of
https://github.com/openharmony/third_party_FreeBSD.git
synced 2026-07-21 16:15:23 -04:00
<fix>
修复警告,判断对入参指针是否为空进行 Signed-off-by: xiacong <xiacong4@huawei.com> Change-Id: I4a061df9f676e04eb23e16e5b513c59ba0bfdb09 Signed-off-by: xiacong <xiacong4@huawei.com>
This commit is contained in:
@@ -547,6 +547,9 @@ urndis_ctrl_handle_query(struct urndis_softc *sc,
|
||||
{
|
||||
const struct urndis_query_comp *msg;
|
||||
uint64_t limit;
|
||||
if (hdr == NULL || buf == NULL || bufsz == NULL) {
|
||||
return RNDIS_STATUS_FAILURE;
|
||||
}
|
||||
|
||||
msg = (const struct urndis_query_comp *)hdr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user